Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save edoardottt/301e59c33490ec6e6c93826aac344690 to your computer and use it in GitHub Desktop.
Save edoardottt/301e59c33490ec6e6c93826aac344690 to your computer and use it in GitHub Desktop.
Open all HTML files recursively with one command
echo ---------------STARTED-----------------
for dir in $(find . -type f)
do
extension="${dir##*.}"
if [[ $extension == "html" ]]; then
code $dir
echo $dir OPENED
fi
done
echo ---------------FINISHED-----------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment