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
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