Saturday, December 27, 2014

List file type counts in a directory based on file ext

   ### print counts of all file types in a directory based on file extension
alias lsx='ls -f1 | sed "s/\(.*\)\.\(.*\)/\2/" | sort | uniq -c | sort -n'

No comments:

Post a Comment