From 5d851aa9f4a6ea2802fe6514345eb5c1ee6fafcc Mon Sep 17 00:00:00 2001 From: Matthew Webster <mwebster@fmrib.ox.ac.uk> Date: Thu, 26 Jul 2007 16:28:41 +0000 Subject: [PATCH] changes for darwin compat --- bedpostx_postproc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bedpostx_postproc.sh b/bedpostx_postproc.sh index 43558a0..a8659b2 100755 --- a/bedpostx_postproc.sh +++ b/bedpostx_postproc.sh @@ -9,7 +9,7 @@ subjdir=$1 -numfib=`${FSLDIR}/bin/imglob -oneperimage ${subjdir}.bedpostX/diff_slices/data_slice_0000/f*samples |wc -w` +numfib=`${FSLDIR}/bin/imglob -oneperimage ${subjdir}.bedpostX/diff_slices/data_slice_0000/f*samples | wc -w | awk '{print $1}'` for ((fib=1; fib<=$numfib; fib++));do ${FSLDIR}/bin/avwmerge -z ${subjdir}.bedpostX/merged_th${fib}samples `${FSLDIR}/bin/imglob -oneperimage ${subjdir}.bedpostX/diff_slices/data_slice_*/th${fib}samples` -- GitLab