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 World

fun coffee break script

Coffee Break Script

tools

https://www.shellcheck.net/ - finds bugs in your shell scripts.