bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: might be a bug in gawk


From: Jean-Michel ELYN
Subject: Re: might be a bug in gawk
Date: Wed, 25 Mar 2009 08:05:09 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

You must know that printf command of gawk takes 2 args: format and data. So $2 in your example is understood as those ones. If you don't want that, just use print instead of printf.

Jean-Michel.


joanes.polus wrote:
hello,

   execution of:

   echo "a%28b%29%c"|awk -F "a" '{printf $2}'

   give this result:

   %28b%c

   and not

   %28b%29%c

   So may be a bug or i do not understand something in awk.

Bye.


-----------------------------------------------------------------------------------
System:
   Archlinux 2008

Hardware:
   Linux 2.6.28-ARCH
   i686 AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux






reply via email to

[Prev in Thread] Current Thread [Next in Thread]