Formatted Strings in Script File
I'm looking for functionallity resembling 'sprintf' in a Linux Shell Script. I want to build a new strings which increament from 0-whatever. I want the output to look like the following:
blabla_000.txt
blabla_001.txt
blabla_002.txt
As you can see, I can't just insert the variable into the string. It also needs to be formated. I need something like '%03d' in sprintf.
Thanks,
Matt
|