what are special characters and explain how does text
varies by the usage of single quotes,double quotes and back
quotes?
Answer / bichitra kumar
Special character like %,$,&,? are taken differently in
unix as they have some different meaning and use.
backslash (\) is used to mask the special meaning of these
special character immidietly following it.
example is grep 'hello\.gif' file
Here \ is used to mask . as it will show the hidden file in
unix directory.
Double Quotes( "" )-- Anything enclose in double quotes
removed meaning of that characters (except \ and $).
example: %echo "Today is date"
Today is date
Single quotes( '' )--Enclosed in single quotes remains
unchanged.
Back quote( `` )--To execute command
%echo "Today is `date`"
Today is Mon Aug 11 05:33:46 EDT 2008
| Is This Answer Correct ? | 3 Yes | 0 No |
What are the advantages of shell script?
How do I run a shell script on a mac?
How to write a function?
What is MUTEX?
How to redirect both standard output and standard error to the same location?
how can you execute the shell scripts?
what is "umask"?
Is powershell a language?
Which is better perl or shell scripting?
What is a scripting language simple definition?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
How do I edit a .sh file?