Information AboutXargs |
| CATEGORIES ABOUT XARGS | |
| unix software | |
|
xargs is a command of the Unix and most Unix-like Operating System s which eases passing command output to another command as command line arguments. It splits its often Piped Input at Whitespace s (or the Null Character ) and calls the command given as an argument with each element of the split input as parameter. If the parameter list is too long, it calls the program as often as necessary. It often covers the same functionality as the Backquote feature of many Shells , but is more flexible and often also safer, especially if there are blanks or special characters in the input. This is often used in conjunction with the Unix commands Find , Locate and Grep . EXAMPLE | ||
|   | <code>find -name "foo" -print0 Xargs -0 Grep Bar</code> Does The Same Thing, But Uses GNU Specific Extensions To Find And Xargs To Separate Filenames Using The | "http://wwwinformationdelightinfo/encyclopedia/entry/null_character" class="copylinks">Null Character this will work even if there are whitespace characters, including Newline s, in the filenames |
|
|