#n Print line before and after changes. /^\.Ah/{ p s/^\.Ah //p }