[Ilugc] .a-tip-a-day. xargs command

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Sat Sep 19 05:05:22 2009

Guys,

If I repeat what Bharathi sent long ago please excuse me. I can't help it.

xargs is often used with the find command like this.

$ find /etc | xargs vi

is a simple way to edit all files under /etc recursively including
directories. This is better.

$ find /etc -type f | xargs vi

You can also remove all .svn or CVS files like this.

$ find . -type d -name CVS | rm -rf

or

$ find . -type d -name .svn | rm -rf

I will send UNIX commands. Not just linux ones.

Have a nice day.

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com

Other related posts: