Try executing as below
perl -i.bak -ne"print if "\$f" ||= /1\.0/" file
In unix the shell interprets the $f. So you were unable to execute.
The great pleasure in my life is doing what people say you cannot do.
In reply to Re^3: Delete strings
by lakshmananindia
in thread Delete strings
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |