perl -i -ne 'print if $end_del ||= /1\.0/' file
/1\.0/ does a substring match; if you want to stop deleting only when the line contains nothing but "1.0", either use /^1\.0$/, or $_ eq "1.0\n".
In reply to Re: Delete strings
by almut
in thread Delete strings
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |