From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 16 Jun 2009 12:51:29 +0100 Message-ID: From: roger peppe To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [9fans] simple question: multiple rename Topicbox-Message-UUID: 0b8b7110-ead5-11e9-9d60-3106f5b1d025 2009/6/8 Russ Cox > On Mon, Jun 8, 2009 at 12:50 AM, Rudolf Sykora wrote: > > Hello, > > Still wonder, what's the right way to make the following work: > > The right way is > > s=`{echo $i | sed 's/(.+)_g/\1/'}. note that this won't work if the filenames contain white space. (i still regret the fact that white space became allowable in file names)