mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-04 23:59:11 +00:00
307 B
307 B
Shell Scripting - Hello World
Objectives
- Define a variable with the string 'Hello World'
- Print the value of the variable you've defined and redirect the output to the file "amazing_output.txt"
Solution
#!/usr/bin/env bash
HW_STR="Hello World"
echo $HW_STR > amazing_output.txt