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


try xargs | 36 comments | Create New Account
Click here to return to the 'try xargs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
try xargs
Authored by: davidduff on Apr 25, '06 08:07:14AM

you might find it informative to do "man xargs".

xargs is a core unix tool used to accomplish exactly what you are talking about, namely to take a list of data (command arguments) from a file and execute a certain command repeatedly. so in this case, for example, if you had a list of directory names in a file, one per line, you could use xargs to execute the mkdir command once for each line in the file.



[ Reply to This | # ]