in reply to In-place file filtering
Change the -p to -n and add an explicit print after the next unless ....