saving . . . saved grep and sed has been deleted. grep and sed has been hidden .
grep and sed
Title
Question
grep -i "computer" seddemo.txt

sed -n '/[cC]omputer/p' seddemo.txt

This two command display the same thing, then what is the difference between them?

Linux The-sed-command 07-08 min 20-30 sec 05-12-20, 7:32 p.m. sanniddhachakrabarti@gmail.com

Answers:

The grep command searches for matching lines  & displays those matching lines to the standard output. And sed is a stream editor, sed is a more powerful tool than grep and it offers more options. You can modify files with the sed command.
09-03-21, noon ganeshmohite


Log-in to answer to this question.