redirect output to another file
Hi,
I want to append output to another file exactly at scecond line
I know below command will work
sed '2 i whatever_line_of_text_you_wanted_to_INSERT' filename.txt
But i want to append output of echo command to second line of my file
Below command is not working
echo "11" | sed '2 i whatever_line_of_text_you_wanted_to_INSERT' filename.txt
Please help me.
|