>>143
moreover that, J-263 mistakes sed command.

s/^$1.*/d/ will substitute the line to letter "d".
it doesn't delete the line !!