From 67f0c0960b8d56ac5ebb68a20b3ab0ab836a23f0 Mon Sep 17 00:00:00 2001
From: Saad Jbabdi <saad@fmrib.ox.ac.uk>
Date: Wed, 1 Aug 2007 12:25:07 +0000
Subject: [PATCH] replaced rm vol* with rm vol????.*

---
 eddy_correct | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eddy_correct b/eddy_correct
index 8dd7232..c8f9c60 100644
--- a/eddy_correct
+++ b/eddy_correct
@@ -13,6 +13,8 @@ Usage() {
 
 [ "$3" = "" ] && Usage
 
+echo cock
+
 input=`${FSLDIR}/bin/remove_ext ${1}`
 output=`${FSLDIR}/bin/remove_ext ${2}`
 ref=${3}
@@ -25,7 +27,7 @@ fi
 fslroi $input $output $ref 1
 
 fslsplit $input
-full_list=`${FSLDIR}/bin/imglob -oneperimage vol*`
+full_list=`${FSLDIR}/bin/imglob -oneperimage vol????.*`
 
 for i in $full_list ; do
     echo processing $i
@@ -35,5 +37,5 @@ done
 
 fslmerge -t $output $full_list
 
-/bin/rm vol*
+/bin/rm vol????.*
 
-- 
GitLab