ITeye博客

xargs usage with multi arguments

standalone · 2011-11-30 12:24 · linux · 编程语言 · Markdown

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.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。