3 echo 'Removing all entries in call graph dot files without'
4 echo 'the prefix CGTest...'
6 for dfile in `ls *.dot`
9 # we definitely want the first line of
10 # the dot file, so just send it to the
12 sed -n '1,1 p' <$dfile >$dfile.temp
14 # now take only the directed edge statements
15 # from the dot file that have the pattern CGtest
16 sed -n '/CGTest/ p' <$dfile >>$dfile.temp
18 # then throw the closing bracket at the end
19 echo '}' >>$dfile.temp
21 # and then clobber the old file