Mar 16, 2005 #1 m4trix Vendor Joined Jul 31, 2002 Messages 84 Location 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)
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)
Mar 16, 2005 #2 xmb Programmer Joined Feb 11, 2005 Messages 213 Location CH 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 Upvote 0 Downvote
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
Mar 16, 2005 #3 xmb Programmer Joined Feb 11, 2005 Messages 213 Location CH Or more correctly: grep -v /xxxx$ Upvote 0 Downvote
Mar 17, 2005 1 #4 hoinz MIS Joined Jan 29, 2004 Messages 944 Location DE find dir ! -name xxxx Upvote 0 Downvote
Mar 17, 2005 Thread starter #6 m4trix Vendor Joined Jul 31, 2002 Messages 84 Location CA 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! Upvote 0 Downvote
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!