[Cialug] List file types in a directory

Daniel A. Ramaley daniel.ramaley at DRAKE.EDU
Fri Mar 9 16:17:16 CST 2007


On Friday 09 March 2007 16:02, Daniel Juliano wrote:
>Thanks all who replied, awesome answers!  If I had to rate a winner, I
>give it to Tim, as my usage looks like:
>
>ls -1 -R /home/djuliano | awk -F'.' '{print $NF}' | sort | uniq
>
>And his output is perfect for what I want.  The next question would be
>how to get counts by file type.

Try tacking on "-c" as an argument to uniq.

------------------------------------------------------------------------
Dan Ramaley                            Dial Center 118, Drake University
Network Programmer/Analyst             2407 Carpenter Ave
+1 515 271-4540                        Des Moines IA 50311 USA


More information about the Cialug mailing list