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 |
I want to upload a file to remote server through ftp daily.Can anyone suggest how to make a shell script for that.I hv credentials for that ftp
How to write an Auto scripting for deleting old files using shell script and made a cron job to run on daily basis
Is bash a shell script?
what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?
How to print pid of the current shell?
How to change our default shell?
What is path in shell script?
I want to connect to a remote server and execute some commands, how can I achieve this?
what is info area how many types?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
defination of mapfile in winrunner?
Is shell a part of kernel?