Last active
July 28, 2024 17:14
-
-
Save emanuel-braz/9adf6e767b2439ffbc60ce7bb0f459ad to your computer and use it in GitHub Desktop.
Hello World from Gist - VSCode extension
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 Hello World from Gist! |
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 Hello World 1! | |
pwd | |
echo Hello World 2! && echo Hello World 2.5! |
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 $ANDROID_HOME |
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
say "Hello World from Mobile Dev Tools" -v "Samantha" |
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
#!/bin/bash | |
# Define an array of commands to be executed | |
declare -a commands=( | |
"pwd" | |
"echo My script!" | |
) | |
# Iterate over the array and execute each command | |
for cmd in "${commands[@]}"; do | |
echo "Executing: $cmd" | |
eval $cmd | |
if [ $? -eq 0 ]; then | |
echo "Command executed successfully." | |
else | |
echo "Command failed." | |
fi | |
echo "---------------------------------" | |
done | |
echo "All commands executed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment