diff --git a/shell_scripting_succinctly/exercise3.sh b/shell_scripting_succinctly/exercise3.sh new file mode 100755 index 0000000..349306e --- /dev/null +++ b/shell_scripting_succinctly/exercise3.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +DEVICE_NAME=$(hostname) + +echo "This script is running on ${DEVICE_NAME} where '${DEVICE_NAME}' is the output of the 'hostname' command."