by cat199 · 9y ago · 0 comments
-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:/moviesor rsync, etc. but you get the idea.