#!/bin/csh -f set VGREP = '/banyo2/data/marco/bin/vgrep' set relaxT = `$VGREP relaxT` echo $relaxT echo $#relaxT @ i=0 while ($i < $#relaxT) @ i++ set NAME = $1"_"$relaxT[$i] echo processing $NAME echo "#\!/bin/csh" > ft_$i.com echo "" >> ft_$i.com echo "nmrPipe -in test.fid \" >> ft_$i.com echo "| nmrPipe -fn SOL \" >> ft_$i.com echo "| nmrPipe -fn SP -off 0.5 -end 0.98 -pow 2 -c 0.5 \" >> ft_$i.com echo "| nmrPipe -fn ZF -auto \" >> ft_$i.com echo "| nmrPipe -fn FT \" >> ft_$i.com echo "| nmrPipe -fn PS -p0 56.0 -p1 -20.0 -di \" >> ft_$i.com echo "| nmrPipe -fn EXT -x1 6ppm -xn 11.5ppm -sw -verb \" >> ft_$i.com echo "| nmrPipe -fn TP \" >> ft_$i.com echo "| nmrPipe -fn COADD -cList \" >> ft_$i.com @ z=0 while ($z < $#relaxT) @ z++ if ($z == $i) then echo 1" \" >> ft_$i.com else echo 0" \" >> ft_$i.com endif end echo " -time \" >> ft_$i.com echo "| nmrPipe -fn SP -off 0.5 -end 0.98 -pow 1 -c 1.0 \" >> ft_$i.com echo "| nmrPipe -fn ZF -auto \" >> ft_$i.com echo "| nmrPipe -fn FT \" >> ft_$i.com echo "| nmrPipe -fn PS -p0 -90.0 -p1 180.0 -di \" >> ft_$i.com echo "| nmrPipe -fn TP \" >> ft_$i.com echo "| nmrPipe -fn POLY -auto \" >> ft_$i.com echo " -verb -ov -out $NAME.ft2" >> ft_$i.com echo "" >> ft_$i.com chmod u+x ft_$i.com ./ft_$i.com end