Quote:
Originally Posted by chetan_linux
Hi All,
Could any one help me with a shell script which will create different sub folders in a folder and of which the sub folders names should be taken from a text file.
Thanks
|
Yep
Set up a loop to read from the file. Let's assume you read into a variable "newname" Each time thru the loop, issue the command "mkdir $newname".
As needed, go here and look up the "read" command, the "while" loop, and "redirection":
http://tldp.org/LDP/abs/html/index.html
(You can also get a PDF at the same site.)