Skip to content

Echo Command

Nuno Nogueira edited this page Dec 15, 2022 · 11 revisions
  • Create a variable with a string value and show 2 diferent types of echo.

Code

#!/bin/bash

message="Bash script is the best!"

# print exactly the text as it is defined
echo 'The message is: $message'

# print the actual value of a variable
echo "The message is: $message"

-> DOWNLOAD script file echo.sh

Clone this wiki locally