Skip to content

Instantly share code, notes, and snippets.

@oesteban
Created August 18, 2018 03:28
Show Gist options
  • Save oesteban/eb4aed118566bdaca95860673e8ea6fc to your computer and use it in GitHub Desktop.
Save oesteban/eb4aed118566bdaca95860673e8ea6fc to your computer and use it in GitHub Desktop.
Some useful snippets in bash
# Find empty folders starting with ds
for dir in ds*; do [ -z "`find $dir -maxdepth 1 -type f`" ] && echo "$dir is empty"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment