Re: OT: awk problem
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 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#";
> for (i = 3; i <= NF; i++)
> TMP = $TMP $i;
> print $TMP;
> }
> }
> }
> }
>
> hth, Elizabeth
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to: