Bash shell script to print Hello World
kw.sh
#!/bin/bash

echo "Hello World"
expr "Hello World"
printf "Hello World\n"
echo "\"Hello World"\"
print="Hello World"
echo $print
echo "$0 is a file name"
Output
kodingwindow@kw:~$ bash kw.sh
Hello World
Hello World
Hello World
"Hello World"
Hello World
kw.sh is a file name
kodingwindow@kw:~$ 
Advertisement