Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

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.

0 Answers  


Is bash an operating system?

0 Answers  


What is the difference between grep and egrep?

0 Answers  


how to read systems current date and time

4 Answers  


What is shell environment?

0 Answers  


What is path in shell script?

0 Answers  


What are the default permissions of a file when it is created?

0 Answers  


how to delete all the files with extension .dat rom a directory tree from root to third level in a single unix command?

4 Answers  


Hi Friends, I am currently Undergoing Course On Testing.I am Planning To Keep Fake Resume.Can any One tell me the ways to Prepare i.e, Real Time experience For Manual Testing. With Regards, Vikram

1 Answers  


Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

0 Answers  


wats the she bang statment with syntax?

3 Answers  


What does echo $0 do?

0 Answers  


Categories