Sunday 17 January 2016

Shell Scripting Echo Examples

#!/bin/bash

echo "Hello World..!!"

printf "My First Shell Program\nAm after new line\n"

#-e enable interpretation of backslash escapes.
echo -e "Have Fun\nI love to Code\n"

#-n supresses the new line which is implicit when use echo command
echo -e -n "I dont introduce extra new lines\n"

No comments:

Post a Comment