Saturday, December 8, 2018

Escape Characters in Shell Scripting

Backslash (\) is the Escape character.

Example: If you need the output like this statement that's below.

Everyone is born with some talent/talents. Few statement's with some !, can be composed @ fo rich # and $, with good % of ^ and & comes befor * now " the closed braces ( and right brace ) ends "

Writing it with escape character \ gives the exact output.

echo Everyone is born with some talent\/talents. Few statement's with some \!, can be composed \@ for rich \# and \$, with good \% of \^ and \& comes before \* now \" the closed braces \( and right brace \) ends \"

***

No comments:

Post a Comment