How to search same file with different case
First, list all the files in alphabetical order
find . | tr [:lower:] [:upper:] | sort > ../sort.list
Second, list all the files in alphabetical order without duplicates
find . | tr [:lower:] [:upper:] | sort |uniq ../uniq.list
Third, run the diff to find same file with different case
diff ../sort.list ../uniq.list
Written by Mauro Barincelli
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#