2009/6/8 Russ Cox <r...@swtch.com> > On Mon, Jun 8, 2009 at 12:50 AM, Rudolf Sykora<rudolf.syk...@gmail.com> 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)