-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgenerate_generators.sh
executable file
·23 lines (17 loc) · 2.18 KB
/
generate_generators.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
sed 's/AllIndicesContracted/OneIndexFree/g' < diracsimplify_generate1.sh > diracsimplify_generate2.sh
sed 's/AllIndicesContracted/TwoIndicesFree/g' < diracsimplify_generate1.sh > diracsimplify_generate3.sh
sed 's/AllIndicesContracted/ThreeIndicesFree/g' < diracsimplify_generate1.sh > diracsimplify_generate4.sh
sed 's/AllIndicesContracted/FourIndicesFree/g' < diracsimplify_generate1.sh > diracsimplify_generate5.sh
sed 's/AllIndicesContracted/OneSlashAllIndicesContracted/g;s/Standard/Slashes/g' < diracsimplify_generate1.sh > diracsimplify_slashes_generate1.sh
sed 's/AllIndicesContracted/TwoSlashesAllIndicesContracted/g;s/Standard/Slashes/g' < diracsimplify_generate1.sh > diracsimplify_slashes_generate2.sh
sed 's/AllIndicesContracted/ThreeSlashesAllIndicesContracted/g;s/Standard/Slashes/g' < diracsimplify_generate1.sh > diracsimplify_slashes_generate3.sh
sed 's/DiracSimplify/DiracTrace/g;s/simplify_indexed/dirac_trace/g;s/Naive/Kreimer/g' < diracsimplify_generate1.sh > diractrace_generate1.sh
sed 's/AllIndicesContracted/OneIndexFree/g;s/DiracSimplify/DiracTrace/g;s/simplify_indexed/dirac_trace/g;s/Naive/Kreimer/g' < diracsimplify_generate2.sh > diractrace_generate2.sh
sed 's/AllIndicesContracted/OneIndexFree/g;s/DiracSimplify/DiracTrace/g;s/simplify_indexed/dirac_trace/g;s/Naive/Kreimer/g' < diracsimplify_generate3.sh > diractrace_generate3.sh
sed 's/AllIndicesContracted/OneIndexFree/g;s/DiracSimplify/DiracTrace/g;s/simplify_indexed/dirac_trace/g;s/Naive/Kreimer/g' < diracsimplify_generate4.sh > diractrace_generate4.sh
sed 's/AllIndicesContracted/OneIndexFree/g;s/DiracSimplify/DiracTrace/g;s/simplify_indexed/dirac_trace/g;s/Naive/Kreimer/g' < diracsimplify_generate5.sh > diractrace_generate5.sh
sed 's/AllIndicesContracted/OneSlashAllIndicesContracted/g;s/Standard/Slashes/g;s/Naive/Kreimer/g' < diractrace_generate1.sh > diractrace_slashes_generate1.sh
sed 's/AllIndicesContracted/TwoSlashesAllIndicesContracted/g;s/Standard/Slashes/g;s/Naive/Kreimer/g' < diractrace_generate1.sh > diractrace_slashes_generate2.sh
sed 's/AllIndicesContracted/ThreeSlashesAllIndicesContracted/g;s/Standard/Slashes/g;s/Naive/Kreimer/g' < diractrace_generate1.sh > diractrace_slashes_generate3.sh
chmod +x *.sh