Linux: Show all unique file extensions in a directory with their total counts.
find . -type f | sed -e ‘s/.*\.//’ | sed -e ‘s/.*\///’ | sort | uniq -c | sort -rn
Advertisements
find . -type f | sed -e ‘s/.*\.//’ | sed -e ‘s/.*\///’ | sort | uniq -c | sort -rn
Reply