awk quickie.

Gary Kline kline at tao.thought.org
Sun Aug 6 22:10:32 UTC 2006


	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 at thought.org   www.thought.org     Public service Unix



More information about the freebsd-questions mailing list