Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs

Partner Sites
JustLinux.com
Linux Planet
PHPBuilder
Technology Jobs

Top White Papers

  • This buyers guide provides independent research and test results to help you determine your endpoint protection requirements and identify the security...
    Download

  • Consolidating databases onto a private cloud is a new model for the delivery of database services. Private clouds consolidate servers, storage, operating...
    Download

More on LinuxToday


Simple Shell One-Liner To Enumerate File Types In Linux and Unix

May 30, 2008, 06:00 (4 Talkback[s])

[ 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..."

Complete Story

Related Stories: