xargs usage with multi arguments

http://offbytwo.com/2011/06/26/things-you-didnt-know-about-xargs.html

 

I saw this article when I was wondering how to move a lot of files listed in a file to another place. I found xargs is very useful here.

 

cat filename list | xargs -I % mv % newfolder

 

Note that in the article above it mentions using -J, I tried on my machine it prompts I should use -I rather than -J.

你可能感兴趣的:(arguments)