Project

General

Profile

Feature #793

Find File Extension Statistics For a Directory on FreeBSD

Added by Daniel Curtis about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Workstation
Target version:
Start date:
04/07/2016
Due date:
% Done:

100%

Estimated time:
0.10 h
Spent time:

Description

I recently needed to find how many of each filetypes existed in a given directory. This is the command I used to get the desired data.

  • Find filetype usage in a given directory:
    find /path/to/data/ -type f -and -print | egrep -io '\.[^.]*$' | sort | uniq -c | sort -rn
    

Resources

#1

Updated by Daniel Curtis about 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#2

Updated by Daniel Curtis about 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF