Chapter 30
Subsections of Linux Scripting
Linux Scripting
Linux scripting
hello world
Running the hello-world.sh script will result in the below output (output tab)
hello-world
#!/usr/bin/env bash
message="Hello World"
printf "with printf: %s\n" "${message}" # POSIX Way
echo "with echo: ${message}" # Not portable$ ./hello-world.sh
with printf: Hello World
with echo: Hello Worldfun coffee break script
tools
https://www.shellcheck.net/ - finds bugs in your shell scripts.