History of AFNI updates  

|
January 22, 2015 04:20PM
Hi all-

I've been wrestling with this code for quite awhile, to no avail, and need a clear head. I'm frustrated, because it's such a simple thing that I *know* (think, hope...) has worked in dozens of previous scripts.

This does not work:

3droistats -mask mymask+tlrc `cat 3droistats_dset_list` > roistats_output.txt

It returns:
Warning: Cannot open input dataset "stats.4028+tlrc[16]"\
Warning: Cannot open input dataset "stats.4074+tlrc[16]"\
Warning: Cannot open input dataset "stats.4092+tlrc[16]"\
Warning: Cannot open input dataset "stats.4114+tlrc[16]"\
Warning: Cannot open input dataset "stats.4135+tlrc[16]"\
Warning: Cannot open input dataset "stats.4138+tlrc[16]"\
Warning: Cannot open input dataset "stats.4159+tlrc[16]"\
Warning: Cannot open input dataset "stats.5020+tlrc[16]"\
Warning: Cannot open input dataset "stats.5024+tlrc[16]"\
Warning: Cannot open input dataset "stats.5062+tlrc[16]"\
Warning: Cannot open input dataset "stats.5085+tlrc[16]"\

However, if I copy/paste the list into the command, I have no problem. Like so:

3droistats -mask mymask+tlrc "stats.4028+tlrc[16]"\
"stats.4074+tlrc[16]"\
"stats.4092+tlrc[16]"\
"stats.4114+tlrc[16]"\
"stats.4135+tlrc[16]"\
"stats.4138+tlrc[16]"\
"stats.4159+tlrc[16]"\
"stats.5020+tlrc[16]"\
"stats.5024+tlrc[16]"\
"stats.5062+tlrc[16]"\
"stats.5085+tlrc[16]"\
 > roistats_output2.txt

It returns expected output to roistats_output2.txt.

I've tried a variety of things, including single quotes, double quotes, bucketing with 3dbucket first (the same input problem occurs with 3dbucket), putting the dataset names into a variable...with no luck.

Pasting the list into my code is not an option; I need to loop through several lists.

Any suggestions?

Gratefully,
Josh

---------------------------------
Josh Powell
Research Associate
Center for Health Behavior Neuroscience
University of Kansas Medical Center

jpowell <two> <at> kumc <dot> edu
Subject Author Posted

tcsh syntax help - cat list of datasets

JoshPowell January 22, 2015 04:20PM

Re: tcsh syntax help - cat list of datasets

rick reynolds January 22, 2015 04:37PM

Re: tcsh syntax help - cat list of datasets

JoshPowell January 22, 2015 05:06PM