1 #!/bin/bash 2 3 FILES=`ls $1/*.data | sed "s/^\\(.*\\).data$/\\1/"` 4 5 mkdir -p $2 6 7 for F in $FILES 8 do 9 G=$2/`echo $F | sed "s/.*\\///g"`.html 10 dmtracedump -h -p $F > $G 11 done 12