List all distinct file extensions in a directory in Unix
find . -type f -name "*.*" | awk -F. '{print $NF}' | sort -u
Written by Ayman
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#