What is FIND, GREP and SED ? Could you please give me the
difference between all the three? Where we use this commnands?
Answer Posted / phani
FIND & GREP
Basically FIND & GREP are the UNIX commands shared through
the FILTERS .Where is SED (STREAM) is one of the main
editor.
FIND : Find is an exclusive command used to find
files/folders are other information.and this is powerfull
then windows.
ex : # find /raja -name shekar -print
output : raja/shekar
Grep : This is also one of the important command used to
globally searching the regular expression in the file .
GERP is grepping the information character by character.
(i.e) from file .
ex 1) : #GREP "cat" raja
2) : #GREP -i "cat" raja (for case sensitive)
2) : #GREP -v "cat" raja (v represent negative )
OUTPUT :if we have an file raja with data regarding cat we
can clearly explain.
Finally SED (STREAM)
SED : It is an editor but non interactive .
ex : # sed -e 'd/chain/dog/f' raja > shekar
| Is This Answer Correct ? | 21 Yes | 2 No |
Post New Answer View All Answers
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
What is awk command used for?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the unix command to confirm a remote host is alive or not?
How do I find previous commands in unix?
Why is it called a shebang?
Describe the usage and functionality of the command rm –r * in unix?
What is the search command in unix?
How do I run a bash script?
What is the use of egrep command in unix?
Is command prompt unix?
What does find command return in unix?
Which command is used to restrict incoming messages?