View Single Post
Old 12-17-2007, 09:15 PM   #3 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 595
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I love xargs. It's like the unix supertool. If you have any filenames with spaces though it can confuse xargs so it's often better to do.
Code:
find <conditions> -print0 |xargs -0 <command>
The print0 separates the find output with null characters and the -0 (a numeric zero not a capital O) option on xargs tells it to split on nulls.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote