delicious

xargs: How To Control and Use Command Line Arguments

A murb'ed feed, posted about one month ago filed in , , , , & .

Good introduction to xargs; a tool I knew existed, but good learn better and put it to good use more. The basic use case if you have a command that outputs data you can use xargs to let each line be an argument for another tool…

 ls *.old | xargs rm

or today I had a file that was copied in 10 projects and I want to see them all in my editor:

 find . | grep filename | xargs mate

Go to the original link.