Date: Sun, 6 Aug 2006 15:10:16 -0700 From: Gary Kline <kline@tao.thought.org> To: FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG> Subject: awk quickie. Message-ID: <20060806221015.GA1039@thought.org>
next in thread | raw e-mail | index | archive | help
Guys,
Can aanybody spot what I'm doing wrong in this tiny awk scripy::
#!/usr/bin/awk
BEGIN { FS = ":"
printf("%s\n", $1)
}
END
I've got a bunch of grepped output that has things like
foo:
foo:
foo:
bar:
bar:
bar:
and I want to pick out just the filename.
thanks for any insights!
gary
--
Gary Kline kline@thought.org www.thought.org Public service Unix
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060806221015.GA1039>
