This sed command appends 2 lines to abc.txt
sed \'$ aline3\\nline4\' abc.txt
line 1 line 2 line 3 line 4
but wanted to ap