BASH Scripts – Displaying output using echo

#Displaying Various Output Formats
# Author :Antony
# Last Date of Modification :27/07/2007

#Three Types of quotes are
# 1.Single quote
# 2.Double quote
# 3.Backslash

#Examples

echo “Current Date is `date`”

echo This \’song\’ is so nice

echo The Movie \”Gladiator\” won 7 oscar awards
echo ‘The total amount is $10000′

echo “The total amount is \$1000″

echo “Wow! This is so beautiful…”

echo Hello Ram\; How are you?

#Output of this program
# Current Date is Fri Jul 27 07:00:58 IST 2007
# This ‘song’ is so nice
# The Movie “Gladiator” won 7 oscar awards
# The total amount is $10000
# The total amount is $1000
# Wow! This is so beautiful…
# Hello Ram; How are you?

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Spam protection by WP Captcha-Free