From 4bef4b77ab1ad6568b4bb1c595286e37450b00e7 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <paulmc@fmrib.ox.ac.uk> Date: Thu, 25 Oct 2018 16:27:38 +0100 Subject: [PATCH] Fix sed command --- fsl_course/feat3/feedsRun3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsl_course/feat3/feedsRun3.py b/fsl_course/feat3/feedsRun3.py index a40cf87..1778b3e 100755 --- a/fsl_course/feat3/feedsRun3.py +++ b/fsl_course/feat3/feedsRun3.py @@ -36,7 +36,7 @@ cmd = "./cleanFSF.py {0} {1} {2} {3} {4} {5}".format( origFSF, newFSF, origDataDir, dataDir, outDir, origFSLDir) run(cmd) -cmd = """sed -i 's/set feat_files(1).*/set feat_files(1) "{0}"/g' {1}""".format(newFeatDir,newFSF) +cmd = """sed -ie 's/set feat_files(1).*/set feat_files(1) "{0}"/g' {1}""".format(newFeatDir,newFSF) print(cmd) run(cmd) -- GitLab