S
S
syxoi2016-06-04 07:56:18
linux
syxoi, 2016-06-04 07:56:18

How to recursively look up file extensions in a directory?

Sobsno speaking, if there are a lot of subfolders in a folder, in which there are a lot of subfolders and files in them. It is necessary to display the extensions of all files that are. For example, there are a thousand .jpeg files - then the output is 1000 files with the extension jpeg, .JPG - 500 files. Google didn't say anything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2016-06-04
@syxoi

So:
Or like this:

find . -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn | head -50

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question