Skip to content

Instantly share code, notes, and snippets.

@sibil
Created May 24, 2022 16:51
Show Gist options
  • Save sibil/e4be6c1d042595d57ed572d0f34cf535 to your computer and use it in GitHub Desktop.
Save sibil/e4be6c1d042595d57ed572d0f34cf535 to your computer and use it in GitHub Desktop.
bash script to check if directories(1 to 100) exist
for (( i = 1; i < 100; i++ ))
do
[ -d $i ] || echo $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment