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
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.
Login to add comment