Skip to content

Instantly share code, notes, and snippets.

@jms1989
Created July 13, 2019 23:14
Show Gist options
  • Save jms1989/f239f4ea9a5ebdfbf62c8d8b73ca03d1 to your computer and use it in GitHub Desktop.
Save jms1989/f239f4ea9a5ebdfbf62c8d8b73ca03d1 to your computer and use it in GitHub Desktop.
count files
#!/bin/bash
du -a "$1" | cut -d/ -f2 | sort | uniq -c | sort -n
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment