Skip to content

Instantly share code, notes, and snippets.

@mrsweaters
Created October 29, 2018 21:17
Show Gist options
  • Save mrsweaters/291cf13a9c69b8d729b41783f660c1c7 to your computer and use it in GitHub Desktop.
Save mrsweaters/291cf13a9c69b8d729b41783f660c1c7 to your computer and use it in GitHub Desktop.
Count files in a directory
ls -l . | egrep -c '^-'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment