in reply to Must have CLI of Perl's sed's n command
Please show the sed script you're trying to replace along with some sample input.