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
Answers:
sed command provides w option in the command to write the file without redirecting output.
Login to add comment