Skip to content
Snippets Groups Projects
Commit ab2ffa16 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Make sed regex portable

parent 63092381
No related branches found
No related tags found
No related merge requests found
......@@ -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 -i 's/set feat_files(1).*/set feat_files(1) "{0}"/g' {1}""".format(newFeatDir,newFSF)
print(cmd)
run(cmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment