Index: mttroot/mtt/bin/trans/rbg_fig2m ================================================================== --- mttroot/mtt/bin/trans/rbg_fig2m +++ mttroot/mtt/bin/trans/rbg_fig2m @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.3 1997/03/19 09:50:24 peterg +## Now creates the sabg (stripped abg) file. +## # Revision 1.2 1996/08/30 10:17:41 peter # New path for awk script. # ## Revision 1.1 1996/08/05 20:13:33 peter ## Initial revision @@ -34,17 +37,23 @@ # Remove some files that I'm going to append to. rm -f $1_fig.fig rm -f $1_head.fig rm -f $1_cmp.fig rm -f $1_bnd.fig + +# Create blank files +touch $1_fig.fig +touch $1_head.fig +touch $1_cmp.fig +touch $1_bnd.fig # The following horrible sed thing is to replace tab by ---- # this is because I can't get sed to recognise tabs even if FS=" ". sed 's/ /---- /'<$1_abg.fig > $1_abg.mtt -# This is the main transformation using gawk -cat $1_lbl.txt $1_abg.mtt | gawk -f $MTTPATH/trans/awk/rbg_fig2m.awk $1 +# This is the main transformation using awk +cat $1_lbl.txt $1_abg.mtt | awk -f $MTTPATH/trans/awk/rbg_fig2m.awk $1 rm -f $1_abg.mtt #Create the stripped abg file cat $1_head.fig $1_bnd.fig $1_cmp.fig> $1_sabg.fig