in reply to In-place file filtering

The -p command line argument puts the print statement in a continue block, which is run even if next jumps out early.

Change the -p to -n and add an explicit print after the next unless ....