Simple Shell One-Liner To Enumerate File Types In Linux and Unix
May 30, 2008, 06:00 (4 Talkback[s])
Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js
[ Thanks to Mike
Golvach for this link. ]
"Lately, we've been focusing a lot on Perl 'one liners,' from
mass file time syncing to name and IP resolution and I thought it
was only fair that we should write a post about a shell 'one liner'
for once. After all, most standard Unix and Linux shells are
perfect for that purpose :)
"Here's a very quick way to take an inventory of all the
different file types (including directories, sockets, named pipes,
etc) that exist in a given directory tree and provide a tally of
each file type..."