[CentOS] Shell Script Question
Stephen John Smoogen
smooge at gmail.comThu Jul 10 00:30:44 UTC 2008
- Previous message: [CentOS] Shell Script Question
- Next message: [CentOS] Shell Script Question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jul 9, 2008 at 6:22 PM, Joseph L. Casale <JCasale at activenetwerx.com> wrote: > What's the simplest way to increment the number 0000 up by one until some other 4 digit number while > preserving leading zero's until the 1000's has a digit other than 0? > Your homework done in a snap! for (i=0; i<1000;i++); do printf "%04d\n" i done > Thanks! > jlc > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > -- Stephen J Smoogen. -- BSD/GNU/Linux How far that little candle throws his beams! So shines a good deed in a naughty world. = Shakespeare. "The Merchant of Venice"
- Previous message: [CentOS] Shell Script Question
- Next message: [CentOS] Shell Script Question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list