author | deba |
Tue, 04 Dec 2007 14:08:27 +0000 | |
changeset 2531 | 426a4e35e167 |
child 2532 | 06495c0e12f5 |
permissions | -rwxr-xr-x |
deba@2531 | 1 |
#!/bin/bash |
deba@2531 | 2 |
|
deba@2531 | 3 |
ID=$RANDOM |
deba@2531 | 4 |
|
deba@2531 | 5 |
cat $1 | \ |
deba@2531 | 6 |
sed -e "s/bipartite undirected graph/_bigr_aph_label_/g"\ |
deba@2531 | 7 |
-e "s/bipartite graph/_bigr_aph_label_/g"\ |
deba@2531 | 8 |
-e "s/undirected graph/_gr_aph_label_/g"\ |
deba@2531 | 9 |
-e "s/UGraph/_Gr_aph_label_/g"\ |
deba@2531 | 10 |
-e "s/ugraph/_gr_aph_label/g"\ |
deba@2531 | 11 |
-e "s/BpUgraph/_Bigr_aph_label_/g"\ |
deba@2531 | 12 |
-e "s/bpugraph/_bigr_aph_label_/g"\ |
deba@2531 | 13 |
-e "s/graph/_digr_aph_label_/g"\ |
deba@2531 | 14 |
-e "s/Graph/_Digr_aph_label_/g"\ |
deba@2531 | 15 |
-e "s/BpUGraph/_Bigr_aph_label_/g"\ |
deba@2531 | 16 |
-e "s/UGraph/_Gr_aph_label_/g"\ |
deba@2531 | 17 |
-e "s/_Digr_aph_label_/Digraph/g"\ |
deba@2531 | 18 |
-e "s/_digr_aph_label_/digraph/g"\ |
deba@2531 | 19 |
-e "s/UEdge/_Ed_ge_label_/g"\ |
deba@2531 | 20 |
-e "s/uedge/_ed_ge_label_/g"\ |
deba@2531 | 21 |
-e "s/uEdge/_ed_ge_label_/g"\ |
deba@2531 | 22 |
-e "s/undirected edge/_ed_ge_label_/g"\ |
deba@2531 | 23 |
-e "s/Edge/_Ar_c_label_/g"\ |
deba@2531 | 24 |
-e "s/edge/_ar_c_label_/g"\ |
deba@2531 | 25 |
-e "s/ANode/_Re_d_label_/g"\ |
deba@2531 | 26 |
-e "s/BNode/_Blu_e_label_/g"\ |
deba@2531 | 27 |
-e "s/A-Node/_Re_d_label_/g"\ |
deba@2531 | 28 |
-e "s/B-Node/_Re_d_label_/g"\ |
deba@2531 | 29 |
-e "s/anode/_re_d_label_/g"\ |
deba@2531 | 30 |
-e "s/bnode/_blu_e_label_/g"\ |
deba@2531 | 31 |
-e "s/aNode/_re_d_label_/g"\ |
deba@2531 | 32 |
-e "s/bNode/_blu_e_label_/g"\ |
deba@2531 | 33 |
-e "s/_Bigr_aph_label_/Bigraph/g"\ |
deba@2531 | 34 |
-e "s/_bigr_aph_label_/bigraph/g"\ |
deba@2531 | 35 |
-e "s/_gr_aph_label_/graph/g"\ |
deba@2531 | 36 |
-e "s/_Gr_aph_label_/Graph/g"\ |
deba@2531 | 37 |
-e "s/_Bigr_aph_label_/Bigraph/g"\ |
deba@2531 | 38 |
-e "s/_Gr_aph_label_/Graph/g"\ |
deba@2531 | 39 |
-e "s/_Ar_c_label_/Arc/g"\ |
deba@2531 | 40 |
-e "s/_ar_c_label_/arc/g"\ |
deba@2531 | 41 |
-e "s/_Ed_ge_label_/Edge/g"\ |
deba@2531 | 42 |
-e "s/_ed_ge_label_/edge/g"\ |
deba@2531 | 43 |
-e "s/_Re_d_label_/Red/g"\ |
deba@2531 | 44 |
-e "s/_Blu_e_label_/Blue/g"\ |
deba@2531 | 45 |
-e "s/_re_d_label_/red/g"\ |
deba@2531 | 46 |
-e "s/_blu_e_label_/blue/g"\ |
deba@2531 | 47 |
> rename_graphs_temp_file_$ID.tmp |
deba@2531 | 48 |
|
deba@2531 | 49 |
mv rename_graphs_temp_file_$ID.tmp $1 |