#!/usr/bin/awk -f # 1. replace .EXT [path/] with .EXT /\*\* localhost - crm --wait --no configure load update (\/tmp\/crm-tmp-.+)/ { gsub(/.*/, "<>", $NF) } { print }