I'm learning SED command. And while doing that i got to this place where i'm taking a copy of my existing file. The code i used is -
sed -n '/Storm/ w Storm.txt' books.txt
As expected, the file 'books.txt' is read , and lines with 'Storm' is put in to the new file 'Storm.txt'. However, it also throws the below error -
sed: read error: Bad file descriptor
Can someone help me understand why is it happening.
---------- Post updated at 02:00 PM ---------- Previous update was at 01:58 PM ----------
<I'm sorry, i think i posted in wrong place. Couldn't find the right place to post from my profile. So, just googled on how to post, and ended up here.>
---------- Post updated at 02:02 PM ---------- Previous update was at 02:00 PM ----------
< I believe, i moved the thread to the right place now.>