BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Report on files by type
- Subject: Report on files by type
- From: darose-prQxUZoa2zOsTnJN9+BGXg at public.gmane.org (David Rosenstrauch)
- Date: Wed, 10 Mar 2010 17:58:04 -0500
- In-reply-to: <4B9822DF.3080604-prQxUZoa2zOsTnJN9+BGXg@public.gmane.org>
- References: <5e2aaca41003101433x17ebfd72hd6693136e4f499fc@mail.gmail.com> <4B9822DF.3080604@darose.net>
On 03/10/2010 05:53 PM, David Rosenstrauch wrote: > On 03/10/2010 05:33 PM, Greg Rundlett (freephile) wrote: >> I got a drive from someone today, with 3.2 GB worth of content on it, and I >> quickly wanted to find out what was on the drive by 'content type' >> (mime-type) >> >> find -type f | egrep -o '\.(.?.?..)$' | sort | uniq -c >> >> did the trick for me, but left me wondering what File Manager or other tool >> does a better job of this? > > find -type f | xargs file -i > > DR Or actually, the summary that you're really trying to see: find -type f | xargs file -bi | sort | uniq -c DR
- References:
- Report on files by type
- From: darose-prQxUZoa2zOsTnJN9+BGXg at public.gmane.org (David Rosenstrauch)
- Report on files by type
- Prev by Date: Report on files by type
- Next by Date: comcast and verizon
- Previous by thread: Report on files by type
- Next by thread: comcast and verizon
- Index(es):