Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using find that will exclude 2 files

Status
Not open for further replies.

OieL

MIS
Sep 6, 2002
17
0
0
US
Hi

how can I use find that will search an entire directory but will exempt 2 files .....

core and a.out

thanks
 
find . ! \( -name core -o -name a.out \) -print
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top