Search for Tips & Tricks

Google
 

Wednesday, January 23, 2008

How to use find command to find and execute

Find can be clubbed with xargs for finding and executing commands.
e.g.

1. Find log fine in /var and delete them

$ find -path /var -name *.log -exec rm {} \;

No comments: