On Sat, Sep 19, 2009 at 5:04 AM, Girish Venkatachalam <
[email protected]> wrote:

> 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.
>
>
i use xargs most of the times to kill a particular process for e.g. httpd

ps -ef | grep httpd | awk '{print $2}' | xargs sudo kill -9

for find, which has a exec by default. not need to use xargs

You can also remove all .svn files like this.
find . -type d -name .svn -exec rm -rf {} \;

just my 2 paise

- balachandar muruganantham
உலகம்.net - இலவச தமிழ் வலைப்பதிவுச் சேவை - http://ulagam.net
எனது தமிழ் பக்கங்கள் - http://www.balachandar.net/pakkangal
Beyond Work - http://beyondwork.wordpress.com/
"இழிவறிந்து உண்பான்கண் இன்பம்போல் நிற்கும் கழிபேர் இரையான்கண் நோய். " -
குறள் எண் : 946
_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to