Date: Thu, 26 Feb 2004 16:52:17 +0100 From: =?iso-8859-2?Q?Roub=ED=E8ek_Zden=ECk_=28T-Systems_PragoNet=29?= <Zdenek.Roubicek@pragonet.cz> To: "Warren Block" <wblock@wonkity.com> Cc: questions@freebsd.org Subject: RE: Problem with sed and awk - SOLVED Message-ID: <9256D57F598E6C41B288AA7DB94F29C901C2D6A4@pgnmail1.pgnaplikace.cz>
next in thread | raw e-mail | index | archive | help
Sorry for not very clearly formulated question. I wrote those commands = by hand and obviously with lot of errors. >=20 > > >awk -F ' FS=3D";" {print $1}' > > 1;1 > > 2 >=20 > Don't use the -F option if you are setting the field separator inside > the code. >=20 This was a mistake.=20 The problem is solved by=20 awk 'BEGIN{FS=3D";"}{print $1}' testfile=20 as suggested by Dough Poland.=20 Thx for the replies. r. Zdenek Roubicek Department of Network Management T-Systems PragoNet, a.s. Na Pankr=E1ci 1685/19,140 21 Prague 4 Phone : +420 2 3609 9615 =09 Fax : +420 2 3609 9999 E-Mail: zdenek.roubicek@pragonet.cz =20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9256D57F598E6C41B288AA7DB94F29C901C2D6A4>