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?

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


Please Help Members By Posting Answers For Below Questions

Is scripting and coding the same thing?

932


Print the 10th line without using tail and head command.

2109


What is shell application?

943


c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command

5329


Which is better perl or shell scripting?

941


How to check if a directory exists?

1098


is this growing field and what is average package in this?

2243


What is shift command in shell script?

962


Write a script to print the first 10 elements of fibonacci series.

2278


How important is shell scripting?

982


How can you get the value of pi till a 100 decimal places?

916


How do you create a shortcut in linux?

1115


What is the difference between grep and egrep?

1067


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

3412


What is a command line shell?

990