Hi guys,
This is going to be soo obvious when pointed out to me but as yet I've not cracked this....
Background I have an script that will cause an application to create a jpg image. What I need to do is to get a sequential number as the image name *but* it has to be in the format of xxxxx ie 00001 or 00099 etc.
Any ideas of the the best way of doing this?
I know I can use incr command to increment my number but am unsure how to get this into xxxxx format... Never used the format command before so am having issues getting things to work.
Ta
This is going to be soo obvious when pointed out to me but as yet I've not cracked this....
Background I have an script that will cause an application to create a jpg image. What I need to do is to get a sequential number as the image name *but* it has to be in the format of xxxxx ie 00001 or 00099 etc.
Any ideas of the the best way of doing this?
I know I can use incr command to increment my number but am unsure how to get this into xxxxx format... Never used the format command before so am having issues getting things to work.
Ta