Shellscript - Shell Script Tutorial - Learning-Ocean
Linux Shell Scripting Tutorial shell script
Step-by-step shell script execution · Create a directory to store your shell script · Create a file in your scripts folder with a · Add an
shell script Step-by-step shell script execution · Create a directory to store your shell script · Create a file in your scripts folder with a · Add an set -e If a command fails, set -e will make the whole script exit, instead of just resuming on the next line If you have commands that can fail without it In Terminal on your Mac, use shell scripts to save time when executing common command sequences
decathlon ใกล้ฉัน more complicated example Let's write a bit more complicated script using more of the shell commands The script uses the ls to list the files and uses wc -l