[CentOS] question
Matt Hyclak
hyclak at ohio.eduFri Oct 17 14:55:46 UTC 2008
- Previous message: [CentOS] question
- Next message: [CentOS] Re: question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Oct 17, 2008 at 10:52:15AM -0400, Jerry Geis enlightened us: > I am trying to increment a filename in a script example name is 000001.txt > and I need to keep the leading 0's. I have no problem if the name was > 1.txt, 2.txt etc... > var=`expr $var + 1` > > however how do I keep the leading 0's? > printf -- Matt Hyclak Systems and Operations Office of Information Technology Ohio University (740) 593-1222 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20081017/e32cc86f/attachment-0001.sig>
- Previous message: [CentOS] question
- Next message: [CentOS] Re: question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list