How Do You Echo a Variable in Unix?
Contents How Do You Echo in Unix? Declare a Variable and Echo Its Value. for Example, Declare a Variable of X and Assign Its Value=10. Note: the ‘-E’ Option in...
Contents
How do you echo in Unix?
Declare a variable and echo its value. For example, Declare a variable of x and assign its value=10. Note: The ‘-e’ option in Linux acts as interpretation of escaped characters that are backslashed.
…
echo Options.
| Options | Description |
|---|---|
| \ | backslash |
| n | new line |
| r | carriage return |
| t | horizontal tab |
Must Read
What is echo in Unix command?
echo command in linux is used to display line of text/string that are passed as an argument . This is a built in command that is mostly used in shell scripts and batch files to output status text to the screen or a file. Syntax : echo [option] [string]