what are special characters and explain how does text
varies by the usage of single quotes,double quotes and back
quotes?
Answer Posted / 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 |
Post New Answer View All Answers
How to check if a directory exists?
determine the output of the following command: echo ${new:-variable}
What is shell scripting used for?
Explain about gui scripting?
Why is it called a shell?
How can I send a mail with a compressed file as an attachment?
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
How important is shell scripting?
How will you copy a file from one machine to other?
What can scripts do?
How are shells born?
shell script for reverse the string
What is the command to find out users on the system?
State the advantages of shell scripting?
What is inside a seashell?