Skip to content

Instantly share code, notes, and snippets.

@claudiobusatto
Created February 22, 2020 19:55
Show Gist options
  • Save claudiobusatto/0d1b803713f1428eb947e765cb4634a9 to your computer and use it in GitHub Desktop.
Save claudiobusatto/0d1b803713f1428eb947e765cb4634a9 to your computer and use it in GitHub Desktop.
Count files inside a directory
function count_dir {
ls -1 $1 | wc -l
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment