Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create multiple folders from Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create multiple folders from Terminal
Authored by: osxpounder on Apr 25, '06 11:45:43AM

I was referring to the first perl command, when I said it did nothing for me, but I'll add that the second perl command also did nothing. If I just run "perl" on the command line, I see a process in Activity Monitor, so it's not that I lack perl.

So far, the only commands in this thread that have worked for me are those of the original post, and then the xargs suggestion immediately following.

---
--
osxpounder



[ Reply to This | # ]
Create multiple folders from Terminal
Authored by: pmccann on Apr 25, '06 08:52:23PM

Then something's fishy: I made a text file "dirnames.txt" in my home directory with the contents

one
two
three

and then executed the above command in the same directory:

perl -ne 'chomp($x=$_); mkdir($x);' < dirnames.txt

Bingo: three folders, appropriately named.

Cheers,
Paul



[ Reply to This | # ]