Systems Automation
A Blog of Automation and Administration Activities
Friday, August 07, 2009
To find out the number of files of each type in your current directory
find ${*-.} -type f | xargs file | awk -F, '{print $1}' | awk '{$1=NULL;print $0}' | sort | uniq -c | sort -nr
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment