From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <4AB1FB95.4070005@maht0x0r.net> References: <4AB1FB95.4070005@maht0x0r.net> Date: Thu, 17 Sep 2009 11:12:50 +0200 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] awk help; not plan9 matter Topicbox-Message-UUID: 6fd27614-ead5-11e9-9d60-3106f5b1d025 2009/9/17 matt : > awk '{a=$2; sub(a, "hell"); print}' file The trouble with this is that the same string can appear more than once (before, after the field, ...), so the simple substitution isn't enough. Ruda