Simple Shell One-Liner To Enumerate File Types In Linux and Unix
May 30, 2008, 06:00 (4 Talkback[s])
WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
[ 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..."