what are special characters and explain how does text
varies by the usage of single quotes,double quotes and back
quotes?



what are special characters and explain how does text varies by the usage of single quotes,double ..

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

Post New Answer

More Shell Script Interview Questions

1.Write a script, which converts a number from binary to hexadecimal format or vice versa.

1 Answers   ADP,


What is a program shell?

0 Answers  


What are the different methods available to run a shell script?

2 Answers  


What is the first line of a shell script called?

0 Answers  


How Connect to a Database in Shell Programming?

4 Answers   Syntel,


What are zombie processes?

0 Answers  


what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?

1 Answers  


Is powershell a language?

0 Answers  


Why should we use shell scripts?

0 Answers  


Is shell scripting easy to learn?

0 Answers  


What is subshell?

0 Answers  


What is MUTEX?

1 Answers  


Categories