Hi, On Mon, Dec 27, 1999 at 09:45 -0600, Patrick K Moorman wrote:
I am working on my first shell script (whoo hoo!) and I have run in to a small problem. I need to assign a variable, say x, to = 000001 with the leading zeros then advance this variable by 1, ie. 000002, 000003, etc. Is this possible in a
I don't know if this is possible, probably not. But you can use printf "%06d\n", $x to pad a number with leading zeros.
bash script? I also need to slice a string and then test the result case insisitive. In case it is important this gem will, over the network, take a group of directories and rename all the files starting with 000001 and the proper extention (the files are on a Win98 machine). Thanks for your help.
Why don't you post an example of what you're trying to achive? This would make it much easier to help you. Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/