Simple ECHO Script

=======================================================
#sample Hello script
=======================================================
[prabhucloudxlab@cxln4 ~]$ cat hello.sh
#! bin/bash
echo "hello bash script"



[prabhucloudxlab@cxln4 ~]$ ls -al hello.sh
-rw-r--r-- 1 adimulamvenkat19851609 adimulamvenkat19851609 38 Jul 13 10:11 hello.sh



[prabhucloudxlab@cxln4 ~]$ chmod +x hello.sh



[prabhucloudxlab@cxln4 ~]$ ls -al hello.sh
-rwxr-xr-x 1 adimulamvenkat19851609 adimulamvenkat19851609 38 Jul 13 10:11 hello.sh



[prabhucloudxlab@cxln4 ~]$ sh hello.sh
hello bash script


 =======================================================


[haritaraka12078@cxln4 ~]$ cat>echo1.sh
#! /bin/bash
echo " good morning prabhu..!"
sleep 1
echo "you're looking good today prabhu...!"
sleep 1
echo "you have the best beard i ever seen prabhu...!"
sleep 1


[haritaraka12078@cxln4 ~]$ ./gdmg.sh
 good morning prabhu..!
you're looking good today prabhu...!
you have the best beard i ever seen prabhu...!





2. Using Echo Command
Echo command is the most common and frequently used command in Linux. It is used to print text or output in the Bash. It has many options that perform different operations.

Syntax:
echo [options] [ARGUMENTS]
Here options are:
-n is used to suppress trailing new line
-e is used to interpret backslash-escaped characters
-E is used to disables the interpretation of the escape characters, and it is the default option for the echo command.

Create a new file echo.sh and add the below lines in it.
#!/bin/bash
echo "Foss Linux"
echo -n "I am a Linux User"
echo -e "\nGood \t Bye \t All"
#Here \n is an escape character for a new line, and \t is an escape character for the horizontal tab.

[prabhucloudxlab@cxln4 ~]$ sh hello.sh
Foss Linux
I am a Linux User
Good     Bye     All