Reputation: 4353
In bash I have a file called temporary.txt that contains one line of text. I want to use the contents of this line of text to create a new directory? How can i do this?
Upvotes: 1
Views: 673
Reputation: 67221
Try this which is less complex than the accepted answer.
mkdir `cat temp`
For each and every word in your text file this creates a directory.
Upvotes: 1