RSS

Category Archives: find

find multiple files

find . -name file1.txt  -o -name file2.txt -o -name file3.txt

 
Leave a comment

Posted by on February 6, 2009 in find, linux

 

Tags: ,

exec command on find results

Use this for small list of files, for better performance use xargs.

find . -name *.conf -exec cp ‘{}’ /etc/apache/include/ \;

 
Leave a comment

Posted by on November 8, 2007 in find

 
 
Follow

Get every new post delivered to your Inbox.