Create a directory list from bar1 with find and order it if


Problem

Your task is to create an empty directory structure bar2 from a nonempty directory tree bar1. Both bar1 and bar2 will be at the same hierarchical level. You have to use mkdir in an efficient manner so that intermediate directories are automatically created. This is what you have to do:

(i) Create a directory list from bar1 with find and order it if necessary.

(ii) Using an awk program, remove all branches from the list so that you can run mkdir only on the leaves.

(iii) Run mkdir with the list to replicate the directory structure of bar1. Specify the complete sequence of operations needed for the job. If mkdir fails because the number of arguments is too large, can you divide the job into manageable portions using xargs?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create a directory list from bar1 with find and order it if
Reference No:- TGS02671761

Expected delivery within 24 Hours