Tugger the SLUGger!SLUG Mailing List Archives

[SLUG] Easy shell scripting question


I'm sure this is easy but U'm having a big mental blank when I try to do
it.

I have a variable in a shell script (#!/bin/sh) which is a number
representing a month.  It has a 0 in the front if it is less than ten
(ie: July is 07) but I need to remove that leading zero.  How can I do
this?

 - Doug

--
_____________________________________________________________
  Network Operations Engineer - Big Pond Advance Satellite
 Ericsson Australia - Level 5, 184 The Broadway, Sydney 2000
  Ph: +61-416-085-390   Email: doug@xxxxxxxxxxxxxxxxxxxxx