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.

3
  • Why do you do a sort -u? There shouldn't be more than one file with the same name right? Commented May 3, 2018 at 3:09
  • 1
    @leeand00 since we’re matching *.ext3, the same path can be present multiple times in the results: a directory containing n files matching *.ext3, as well as file1.ext1 and file2.ext2, will appear n times. Commented May 3, 2018 at 5:17
  • So we're counting the number of directories that match the criteria. Okay. Commented May 3, 2018 at 6:38