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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens when we execute a unix command?

694


What is the behavioural difference between cmp and diff commands?

752


What is the use of tee command?

651


What do chmod, chown, chgrp commands do?

736


What is the command to find hidden files in the current directory?

692






Why is awk called awk?

664


What are awk commands?

671


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

760


Which unix command lists files/folders in alphabetical order?

692


What is “chmod” command?

645


What does this command do? Cat food 1 > kitty

1069


What do chgrp command do?

700


What is the comma to show the space allocation of files?

640


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

679


How many unix commands are there?

710