Re: OT: awk problem

2002-11-10 Thread Elizabeth Barham
Neal Lippman <[EMAIL PROTECTED]> writes: > No, it doesn't help...I tried putting it in a file - same exact problem. > I assume you ran it with mawk? (/usr/bin/awk links to > /etc/alternatives/awk which links to /usr/bin/mawk on my system). Yes. I have two architectures running and both worked fin

Re: OT: awk problem

2002-11-10 Thread Michael Heironimus
On Sun, Nov 10, 2002 at 11:04:26PM -0500, Neal Lippman wrote: > No, it doesn't help...I tried putting it in a file - same exact problem. > I assume you ran it with mawk? (/usr/bin/awk links to > /etc/alternatives/awk which links to /usr/bin/mawk on my system). Have you tried running it through gaw

Re: OT: awk problem

2002-11-10 Thread Neal Lippman
No, it doesn't help...I tried putting it in a file - same exact problem. I assume you ran it with mawk? (/usr/bin/awk links to /etc/alternatives/awk which links to /usr/bin/mawk on my system). nl On Sun, 2002-11-10 at 22:53, Elizabeth Barham wrote: > It works for me although I did place your scri

Re: OT: awk problem

2002-11-10 Thread Elizabeth Barham
It works for me although I did place your script into a file and ran it as: awk -f neals-script.awk /etc/services { if (index($0,"@") == 0 && index($0,"--none---") == 0) { if(substr($0,1,1) == "#") { print $0; } else { TMP = $1"\t\t"$2"\t\t#";

OT: awk problem

2002-11-10 Thread Neal Lippman
Sorry for another OT post here, but this is the best place I've found for linux knowledge even when not debian specific. I am trying to write a short awk script to process my /etc/services file into a format that the utilities supplied with yp/nis can correctly handle. What I need to do is to pars