Skip to content

Instantly share code, notes, and snippets.

@raypereda
Last active November 6, 2018 05:55
Show Gist options
  • Save raypereda/2266a90469c6808fa2ca19ae8f0971a2 to your computer and use it in GitHub Desktop.
Save raypereda/2266a90469c6808fa2ca19ae8f0971a2 to your computer and use it in GitHub Desktop.
count the number of files in the directories 1 level below
find . -maxdepth 1 -exec echo {} \; -exec sh -c "find {} | wc -l " \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment