#!/usr/bin/gawk -f # /* vim: set filetype=gawk : */ -*- awk -*- BEGIN{ Fname="test"; Out=""; } { gsub(/\:.+/," "); Out= Out $0 "\n"; } END{ print Out>Fname; }