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 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. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META content="MSHTML 5.00.2614.3500" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>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 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.</FONT></DIV> <DIV> </DIV></BODY>