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

Write a command that will display files in the current directory, in a colored, long format.

0 Answers  


Is grep faster than awk?

0 Answers  


What is the difference between pipe (|) and tee command in unix

14 Answers   Cap Gemini, TCS,


Which command is used to copy files?

0 Answers  


How to find the files that are accessed before 10 minutes?

5 Answers   Amazon,






what does a process mean?

7 Answers   Infosys,


distinguish between interrupts and exceptions?

2 Answers   Infosys, Wipro,


What are reported commands?

0 Answers  


What difference between cmp and diff commands?

0 Answers  


distinguish between multi-tasking,multi-user,multi- processing and time sharing?

4 Answers   Infosys, Nikhil Construction,


If we want to see first 35 lines of a file which command we have to use?

8 Answers  


hi i have directories within the directory. Now i want to copy the directory along with all directories included in it to one location by using copy command? what is the command

2 Answers   ACS, Span Systems,


Categories