Back to the learning path

bash

bash = Bourne-Again SHell (a pun on the Bourne shell) Command details
Step 1/2: Run a script

bash SCRIPT ARGS… runs a script in a new bash; it does not need to be executable. Inside, $1 is the first argument and $# the number of arguments. Once executable (chmod +x), ./SCRIPT works too.

$ bash greet.sh alice
Fundamentalsbash
Run a script with an argument
Run hello.sh with bash and pass ivan as its first argument (it is not executable, so ./hello.sh will not work).
awkNext lesson:xargs