Skip to content

Instantly share code, notes, and snippets.

@yeisoncruz16
Created February 26, 2021 15:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yeisoncruz16/ccbc91caf0e12681c1630d2dcc2c92fd to your computer and use it in GitHub Desktop.
Save yeisoncruz16/ccbc91caf0e12681c1630d2dcc2c92fd to your computer and use it in GitHub Desktop.
Perform action inside multiple folders
for D in *; do
if [ -d "${D}" ]; then
echo "Processing -> ${D}"
cd "${D}" && YOU_SPECIAL_COMMAND_GO_HERE && cd -
echo "----------------------------";
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment