AFNI Nation,
Essentially, I'm using a while loop in conjunction with 1dcat in order to tease out individual time points in a .1D file in order to make volumes with 3dUndump, but the files names look like...
file_1
file_2
...
file_10
file_11
...
file_100
file_101
What I want is them to look like...
file_001
file_002
...
file_010
file_011
...
file_100
file_101
So the question becomes, when constructing while loops in csh, how do I maintain an equal number of digits in the variable using left zero padding?