; > > 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. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
- [SLUG] Easy shell scripting question Doug Stalker
- Re: [SLUG] Easy shell scripting question John Ferlito
- Re: [SLUG] Easy shell scripting question Malcolm Tredinnick
- Re: [SLUG] Easy shell scripting question Herbert Xu
- Russell Davies
