Tags:
create new tag
, view all tags

GNU Commands

xargs

awesome command, xargs is used to send the output of one command to the parameter of another command. I use it a lot with 'find', i.e.:
 find . -name "somepattern" | xargs rm -f
could be used to forcibly remove all the files returned by 'find'. Use -l to send one argument at a time to the command -- otherwise the whole list is sent to the command.


-- SamPreston - 30 Apr 2007
Topic revision: r2 - 2007-04-30 - SamPreston
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback