History of AFNI updates  

|
Ariel Kanevsky
July 29, 2008 12:52PM
AFNI Nation,

While I know you can use 3dinfo to inspect a dataset, I was wondering if there exists an AFNI program that can check to see if a file is a valid AFNI dataset. The reason for doing this is for some of my scripts to have a possible fail safe before they start trying to act on files.

I tried something like...

if ( `3dinfo $file |& grep '*+ WARNING' != "" ) then
exit
endif

but my argument for my if statement is that there is "No match" while trying it at the command line without backquotes seems to read a faulty 3dinfo execution just fine. How do I accomplish this?

-Ariel
Subject Author Posted

AFNI data set check program

Ariel Kanevsky July 29, 2008 12:52PM

Re: AFNI data set check program

Daniel Glen July 29, 2008 05:34PM