Hi guys ,
I m writing a script to delete a line at particular location.
But i m unable to use variable for specifying line number.
sed -n '7!p' filename
works fine and deletes 7th line from my file
sed -n '$variable!p' filename
gives following error.
sed: -e expression #1, char 3: extra characters after command