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