Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Easy shell scripting question


; > > 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.

You can save another couple of keystrokes by omitting the '-e'.

r.