in reply to Re^4: What's the "...0" mean?
in thread What's the "...0" mean?
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?
|
|---|