CaT wrote:

>
> > newmonth = `echo $oldmonth | sed -e 's/0\([1-9]\)/\1/'`
>
>
> newmonth = `echo $oldmonth | sed -e 's/^0//'`
>

Both of these work on the target system, so I'm going with the one that involves
the least typing.

Other suggestions worked fine on linux (where I'm writing the script) but failed
on SCO (where it will be used)


One of these days I'm going to find the time to learn awk and sed, or at least
the basics of them.

 - Doug


--
_____________________________________________________________
  Network Operations Engineer - Big Pond Advance Satellite
 Ericsson Australia - Level 5, 184 The Broadway, Sydney 2000
  Ph: +61-416-085-390   Email: [EMAIL PROTECTED]




--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to