67
edits
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
will do it. Notice that "%03d" will make sure that numbers are padded with zeros (and if you need 4 digits total, just use %04d instead). Also, always pipe it to less first before piping to bash, just to make sure that you are not going to inadvertently delete something. | will do it. Notice that "%03d" will make sure that numbers are padded with zeros (and if you need 4 digits total, just use %04d instead). Also, always pipe it to less first before piping to bash, just to make sure that you are not going to inadvertently delete something. | ||
Back to [[ | |||
Back to [[Useful scripts (aka smart piece of code)]] |
edits