saving . . . saved store result in file has been deleted. store result in file has been hidden .
store result in file
Title
Question
sed -n ' /[cC]omputers/w student.txt' seddemo.txt

sed -n '/[cC]omputers/p' seddemo.txt > student.txt

output of both this command is same, then what's the difference ?

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

Answers:

 sed command provides w option in the command to write the file without redirecting output.
11-03-21, 5:57 p.m. ganeshmohite


Log-in to answer to this question.