what is the difference between SED and GREP ?
Which one is more better and why?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / kiruthiga.s
SED-- search and replace
grep filters the matching pattern
| Is This Answer Correct ? | 13 Yes | 1 No |
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 |
What is the command to compare two files in unix?
What is the use of touch command in there?
What will the following command do?
How to find the files that are accessed before 10 minutes?
Differentiate cmp command from diff command.
What is awk used for?
Describe the usage and functionality of the command rm –r * in unix?
How to replace the exact word in vi editor?? suppose a file contains words like amaze,amazed,amazement in some of the line.But i want to replace only 'amaze' with delight but don't wanna replace amazed or amazement. thanks
6 Answers Polaris, Tech Mahindra,
What is updatedb?
What does 'mkdir' command do in UNIX?
What are awk commands?
What does this command do,"$more readme.txt“?