Mar 16, 2005 #1 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)
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 Feb 11, 2005 213 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 Feb 11, 2005 213 CH Or more correctly: grep -v /xxxx$ Upvote 0 Downvote
Mar 17, 2005 Thread starter #6 m4trix Vendor Jul 31, 2002 84 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!