Find everything except
Finds every file except file with "Repo" in it:
find . -type f -not -name '*Repo*'
Might come handy when need to delete all files but one specific:
find . -type f -not -name '*Repo*' | xargs rm
Written by dmitry
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#