- To: SLUG <slug@xxxxxxxxxxx>
- Subject: [SLUG] Easy shell scripting question
- From: Doug Stalker <dougs@xxxxxxxxxxxxxxxx>
- Date: Tue Aug 22 12:37:48 2000
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