Skip to content

Instantly share code, notes, and snippets.

@jana007
Created March 30, 2016 13:15
Show Gist options
  • Save jana007/c14f8c6e745df843808eae28c1d6377a to your computer and use it in GitHub Desktop.
Save jana007/c14f8c6e745df843808eae28c1d6377a to your computer and use it in GitHub Desktop.
elFiles=$(find * -maxdepth 0 -type f -readable -writable ! -executable -exec echo "possible bad file:" {} \;)
elCount=$(find * -maxdepth 0 -type f -readable -writable ! -executable | wc -l)
dirCount=$(ls -lht | grep ^- | wc -l)
dirList=$(ls -lhtp | grep -v '/$')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment