The shell script

Create a simple shell script to print a greeting.

The script will print Hello and the name supplied as the script’s first argument (defaulting to World if none).


echo "Hello, $NAME!"

Set the executable bit and run the script in your terminal.

chmod +x
Hello, world!

Try the script passing a name as an argument. Docker
Hello, Docker!