Subject: Re: Bourne shell script help
To: Greg Troxel <gdt@ir.bbn.com>
From: Andy Ruhl <acruhl@gmail.com>
List: netbsd-users
Date: 07/25/2006 12:40:23
On 7/25/06, Greg Troxel <gdt@ir.bbn.com> wrote:
> firstchar=$(echo $var | sed -e 's/^\(.\).*/\1/')
> secondchar=$(echo $var | sed -e 's/^.\(.\).*/\1/')

Holy cow, that's ugly. I never did do my sed homework! I need to read
up on this...

Thanks!

Andy