2 ms·
also of note is: -t : print the commands being run -I %: interpolate file name in command string. e.g. ls .mp4 |xargs -t -L 1 -I % scp % me@somebox:/movies
by cat199 9y ago
also of note is:
-t : print the commands being run
-I %: interpolate file name in command string.
e.g. ls .mp4 |xargs -t -L 1 -I % scp % me@somebox:/movies
to scp individual files (replaced in %) to a destination, one at a time, printing each command as it is run.
Again, not the best example since you can
scp .mp4 me@sombeox:/movies
or rsync, etc.
but you get the idea.
- bitexploder 9y agoFind has exec as well. I tend to use this when searching for things.