But in the original question
the flip-flop is true on the first line (the substitution) and remains to be true on the second line (the comparison with line number).perl -ne 'print if s/.*?(?=abc)//...2' input.txt
But should it then not remain false for the rest of the file resulting in no more lines being printed?
In reply to Re^5: What's the "...0" mean?
by morgon
in thread What's the "...0" mean?
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |