AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
Ariel Kanevsky
May 13, 2008 01:11PM
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?

Subject Author Posted

Left zero padding while index variable

Ariel Kanevsky May 13, 2008 01:11PM

Re: Left zero padding while index variable

Daniel Glen May 13, 2008 01:25PM

Re: Left zero padding while index variable

Ariel Kanevsky May 13, 2008 01:31PM