History of AFNI updates  

|
June 05, 2020 09:44AM
Hi-

I guess there might be some spaces in the output when using `...`? Not sure.

This worked for me to build a list of indices (in tcsh, but the syntax should transfer directly to bash):
#!/bin/tcsh

set FILE     = STATS_DSET
set idx_list = ( )   # to be populated

# make a list of all the labels
set all_labels = `3dinfo -label  "${FILE}" | tr '|' '\n' | grep Coef`

# go through the labels and populate list of indices
foreach label ( ${all_labels} )
    set idx_list = ( ${idx_list} `3dinfo -label2index "${label}" "${FILE}"` )
end

echo ""
echo "++ All my labels:"
echo "   ${all_labels}"
echo "++ My final index list:"
echo "   ${idx_list}"
Subject Author Posted

THD_zzprintf() long string truncation = the ZSS syndrome

mjeffers June 04, 2020 03:25PM

Re: THD_zzprintf() long string truncation = the ZSS syndrome

ptaylor June 04, 2020 04:21PM

Re: THD_zzprintf() long string truncation = the ZSS syndrome

mjeffers June 04, 2020 04:40PM

Re: THD_zzprintf() long string truncation = the ZSS syndrome

ptaylor June 04, 2020 05:30PM

Re: THD_zzprintf() long string truncation = the ZSS syndrome

mjeffers June 04, 2020 09:51PM

Re: THD_zzprintf() long string truncation = the ZSS syndrome

rick reynolds June 04, 2020 10:14PM

Re: THD_zzprintf() long string truncation = the ZSS syndrome

mjeffers June 04, 2020 10:37PM

Re: THD_zzprintf() long string truncation = the ZSS syndrome

ptaylor June 05, 2020 09:44AM

Re: THD_zzprintf() long string truncation = the ZSS syndrome

japees November 22, 2021 02:57PM

Re: THD_zzprintf() long string truncation = the ZSS syndrome

rick reynolds December 02, 2021 09:09AM