Created
June 11, 2020 18:03
-
-
Save edoardottt/301e59c33490ec6e6c93826aac344690 to your computer and use it in GitHub Desktop.
Open all HTML files recursively with one command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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