linux - sed -i is not working on solaris system while removing 1st line from file -


i trying remove first line file don't want create file, want modify current file .tried following command on solaris machine following error(sed: illegal option -- i) coming, can suggest replacement for solaris.

sed -i 1d currentfilename 

you can use ed or vi :

ed -s currentfilename << eof 1d w q eof 

Comments