what is the difference between SED and GREP ?
Which one is more better and why?

Answers were Sorted based on User's Feedback



what is the difference between SED and GREP ? Which one is more better and why?..

Answer / gogune suresh kumar

Both serves the purpose of "pattern matching" in files.
SED has more features compared to simple GREP. Ex: like
replacement of existing string with new string. Deleting the
lines in a file etc.

Is This Answer Correct ?    57 Yes 5 No

what is the difference between SED and GREP ? Which one is more better and why?..

Answer / ravi mahant

SED has more features compared to simple GREP. we can grep
and edit and replace string using SED.
GREP is used to find the string and active process.

Is This Answer Correct ?    30 Yes 7 No

what is the difference between SED and GREP ? Which one is more better and why?..

Answer / kiruthiga.s

SED-- search and replace


grep filters the matching pattern

Is This Answer Correct ?    13 Yes 1 No

what is the difference between SED and GREP ? Which one is more better and why?..

Answer / basanth

grep has only pattern space since it can store only one line at a time but sed has pattern space and hold space.it can store more than one line at a time

Is This Answer Correct ?    13 Yes 5 No

Post New Answer

More Unix Commands Interview Questions

Explain ‘system calls’ with respect to unix commands?

1 Answers  


what is ls -ltd?

5 Answers   HCL,


What is the basic difference between unix and windows operating systems?

43 Answers   Bopro, College School Exams Tests, CTS, IBM, IT-Kids, Priyadarshini, Sybian Technologies, Tolani Maritime,


How do I search for a file in unix command?

1 Answers  


How to get a particular string as your prompt ? Give syntax of that command?

3 Answers  


A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me

7 Answers   CTS,


How to setup sudo, only can use for particular date & time only ( for solaris10 )

1 Answers   ups,


how to find the 51th record of a file containing 100 records in unix.

12 Answers   IBM,


How do you list the files in an UNIX directory while also showing hidden files?

6 Answers  


what is the advaantage of each user having its own copy of the shell?

1 Answers   BMC, CNS, DELL, Infosys,


What is the different between UNIX command and UNIX shell script?

2 Answers  


what are the different commands used to create files?

5 Answers  


Categories