Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • What is your criterion for matching a "type"? You have three different numbering schemes in your examples (extension followed by dot followed by number, extension followed by number, and filename followed by number followed by dot followed by the extension. Commented Nov 7, 2014 at 13:04
  • it should give result like .txt, .log, .csv one for each pattern Commented Nov 7, 2014 at 13:28
  • For answers ending in | uniq -c it might be interesting to look at the results ordered by count of files with that extension: | uniq -c | sort -n Commented May 31, 2017 at 17:47