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


Please Help Members By Posting Answers For Below Questions

Can you enlist some commonly used network commands?

594


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

752


Why is awk called awk?

573


What are some command words?

551


What is merge command in unix?

938






How do you grep a case insensitive?

532


What is the general format of unix command syntax?

685


Which command will print your home directory on screen?

538


How do I clear my terminal history?

575


How to use grep command to list find the records of a file containing 10 different strings?

639


Describe the zip/unzip command using gzip.

604


What is ‘ps’ command for?

608


What is the use of finger command?

585


How can we use grep command in unix?

606


What does the command ' $who | sort –logfile > newfile' do?

757