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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find function question 1

Status
Not open for further replies.

m4trix

Vendor
Jul 31, 2002
84
CA
How do you exclude a file from a find?

for example, I want to find all files in a directory except for the file "xxxx" (if it exists)
 
I haven't ever seen an exclude option, cant think of a reason any/GNU doesnt have a such.

grep -v xxxx$
is the way to go

. Mac for productivity
.. Linux for developement
... Windows for solitaire
 
excellent, thx hoinz - I tried that too, but I put the ! right next to the -name and it didn't work. off by a space!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top