Shell scripts and one liners
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment