Skip to content

Instantly share code, notes, and snippets.

@gajus
Created September 6, 2015 12:30
Show Gist options
  • Save gajus/f5a9f1ac53bdd9087534 to your computer and use it in GitHub Desktop.
Save gajus/f5a9f1ac53bdd9087534 to your computer and use it in GitHub Desktop.
for d in */ ; do
dirName=$d;
dirName=${dirName//\/}
if [-f "$dirName.sql"]; then
echo "File found!"
fi
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment