Skip to content

Instantly share code, notes, and snippets.

@sposmen
Created October 11, 2012 20:57
Show Gist options
  • Save sposmen/3875432 to your computer and use it in GitHub Desktop.
Save sposmen/3875432 to your computer and use it in GitHub Desktop.
Search if a set of directories doesn't have an specific subfolder
#/usr/bin/bash
for D in `find . -type d -maxdepth 1`
do
if [ ! -d "$D/$1" ]; then
echo "$D"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment