Return to Snippet

Revision: 1378
at October 3, 2006 01:28 by buscarini


Updated Code
En Linux:
find . -type f -name "*.h" -print0 | xargs -0 --replace=% cp % result/include/



En otros Unix:

$ pwd
/Users/taylor/Desktop/foo
$ find . -type f -name "*mp3" -print0 | \
   xargs -0 -J% mv % /Users/taylor/Desktop/foo
$

Revision: 1377
at October 3, 2006 01:19 by buscarini


Initial Code
$ pwd
/Users/taylor/Desktop/foo
$ find . -type f -name "*mp3" -print0 | \
   xargs -0 -J% mv % /Users/taylor/Desktop/foo
$

Initial URL


Initial Description


Initial Title
Usar xargs para comandos que requieren más de 1 argumento

Initial Tags
unix

Initial Language
Other