rename graphs script
authordeba
Tue, 04 Dec 2007 14:08:27 +0000
changeset 2531426a4e35e167
parent 2530 f86f7e4eb2ba
child 2532 06495c0e12f5
rename graphs script
scripts/rename-graphs
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/rename-graphs	Tue Dec 04 14:08:27 2007 +0000
     1.3 @@ -0,0 +1,49 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +ID=$RANDOM
     1.7 +
     1.8 +cat $1 | \
     1.9 +sed -e "s/bipartite undirected graph/_bigr_aph_label_/g"\
    1.10 +	-e "s/bipartite graph/_bigr_aph_label_/g"\
    1.11 +	-e "s/undirected graph/_gr_aph_label_/g"\
    1.12 +	-e "s/UGraph/_Gr_aph_label_/g"\
    1.13 +	-e "s/ugraph/_gr_aph_label/g"\
    1.14 +	-e "s/BpUgraph/_Bigr_aph_label_/g"\
    1.15 +	-e "s/bpugraph/_bigr_aph_label_/g"\
    1.16 +	-e "s/graph/_digr_aph_label_/g"\
    1.17 +	-e "s/Graph/_Digr_aph_label_/g"\
    1.18 +	-e "s/BpUGraph/_Bigr_aph_label_/g"\
    1.19 +	-e "s/UGraph/_Gr_aph_label_/g"\
    1.20 +	-e "s/_Digr_aph_label_/Digraph/g"\
    1.21 +	-e "s/_digr_aph_label_/digraph/g"\
    1.22 +	-e "s/UEdge/_Ed_ge_label_/g"\
    1.23 +	-e "s/uedge/_ed_ge_label_/g"\
    1.24 +	-e "s/uEdge/_ed_ge_label_/g"\
    1.25 +	-e "s/undirected edge/_ed_ge_label_/g"\
    1.26 +	-e "s/Edge/_Ar_c_label_/g"\
    1.27 +	-e "s/edge/_ar_c_label_/g"\
    1.28 +	-e "s/ANode/_Re_d_label_/g"\
    1.29 +	-e "s/BNode/_Blu_e_label_/g"\
    1.30 +	-e "s/A-Node/_Re_d_label_/g"\
    1.31 +	-e "s/B-Node/_Re_d_label_/g"\
    1.32 +	-e "s/anode/_re_d_label_/g"\
    1.33 +	-e "s/bnode/_blu_e_label_/g"\
    1.34 +	-e "s/aNode/_re_d_label_/g"\
    1.35 +	-e "s/bNode/_blu_e_label_/g"\
    1.36 +	-e "s/_Bigr_aph_label_/Bigraph/g"\
    1.37 +	-e "s/_bigr_aph_label_/bigraph/g"\
    1.38 +	-e "s/_gr_aph_label_/graph/g"\
    1.39 +	-e "s/_Gr_aph_label_/Graph/g"\
    1.40 +	-e "s/_Bigr_aph_label_/Bigraph/g"\
    1.41 +	-e "s/_Gr_aph_label_/Graph/g"\
    1.42 +	-e "s/_Ar_c_label_/Arc/g"\
    1.43 +	-e "s/_ar_c_label_/arc/g"\
    1.44 +	-e "s/_Ed_ge_label_/Edge/g"\
    1.45 +	-e "s/_ed_ge_label_/edge/g"\
    1.46 +	-e "s/_Re_d_label_/Red/g"\
    1.47 +	-e "s/_Blu_e_label_/Blue/g"\
    1.48 +	-e "s/_re_d_label_/red/g"\
    1.49 +	-e "s/_blu_e_label_/blue/g"\
    1.50 +> rename_graphs_temp_file_$ID.tmp
    1.51 +
    1.52 +mv rename_graphs_temp_file_$ID.tmp $1
    1.53 \ No newline at end of file