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 |
How to get the first line from a file using just the terminal?
what is this line in the shell script do ?#!/bin/ksh
What are the different commands available to check the disk usage?
Write a shell program to test whether a given number is even or odd?
How to pass an argument to a script?
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
how to get part of string variable with echo command only?
Write a shell script to looking at the log file to see if the test has passed or not
Why do we write bin bash in shell scripts?
How do I run a bin bash script?
What are the additional egrep symbols?
how did u debugging in unix/ linux platform ??( project Related)