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

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

Re: bug? using pattern matching with gawk


From: Andreas Schwab
Subject: Re: bug? using pattern matching with gawk
Date: Wed, 04 Aug 2010 16:30:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

taha <address@hidden> writes:

> Here's the typed command:
>
>  gawk '$1=="NULL"{$1="NULLL"}{print $0}' file

That's not really pattern matching, but just a simple string compare,
and it works as expected for me.

$ echo abcdNULL | gawk '$1=="NULL"{$1="NULLL"}{print $0}'
abcdNULL

You need to be more specific about the exact input you used.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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