#!/bin/csh -f # Gets subject name out of register.dat # $Id: reg2subj,v 1.1 2007/02/08 17:04:22 greve Exp $ # # reg2subj # # Original Author: Doug Greve # CVS Revision Info: # $Author: greve $ # $Date: 2007/02/08 17:04:22 $ # $Revision: 1.1 $ # # Copyright (C) 2002-2007, # The General Hospital Corporation (Boston, MA). # All rights reserved. # # Distribution, usage and copying of this software is covered under the # terms found in the License Agreement file named 'COPYING' found in the # FreeSurfer source code root directory, and duplicated here: # https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferOpenSourceLicense # # General inquiries: freesurfer@nmr.mgh.harvard.edu # Bug reports: analysis-bugs@nmr.mgh.harvard.edu # if($#argv != 1) then echo "reg2subj registerfile" exit 1; endif set regfile = $argv[1]; if(! -e $regfile) then echo "ERROR: cannot find $regfile" exit 1; endif cat $regfile | head -n 1 exit 0