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  

|
December 01, 2014 12:54PM
Your original problem is that you're not substituting commands in the way that you want to. If you're using bash, you can accomplish this with process substitution:
...
-stim_times 1 <(sed -n '1,1p' ./Onset_Sub"$subj"/Main1.txt) 'BLOCK4(0.8,1)' -stim_label 1 Event1 \ 
...
The "<(command)" syntax runs "command" in a separate process, and sends the output to a pipe. Then the "<(command)" expands to the name of that pipe, so that when the shell starts 3dDeconvolve it sees a file name there, opens it, and reads the output from sed that's getting piped in, exactly the way you want.

Unfortunately this functionality is not very portable; in particular, it doesn't exist in tcsh.
Subject Author Posted

extract one special row data & -GOFORIT

Juan November 30, 2014 08:50PM

Re: extract one special row data & -GOFORIT

rick reynolds December 01, 2014 11:37AM

Re: extract one special row data & -GOFORIT

Juan December 05, 2014 12:22PM

Re: extract one special row data & -GOFORIT

rick reynolds December 05, 2014 01:06PM

Re: extract one special row data & -GOFORIT

Isaac Schwabacher December 01, 2014 12:54PM

Re: extract one special row data & -GOFORIT

Juan December 05, 2014 01:39PM

Re: extract one special row data & -GOFORIT

Juan December 01, 2014 07:49PM