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 |
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
Which shell is the best?
What is bourne shell scripting?
What is batch file programming?
How will you list only the empty lines in a file (using grep)?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
What is computer cli?
Why are shell scripts used?
how can you execute the shell scripts?
How to sort a result of Ls -l command based on columns. Ex. i want to sort 5th column from output of ls -l command.
what is the difference between sh & bash shell?
Explore about environment variables?