user@yourbox /home/httpd/html ] $ ls *.html *.asp | while read file;do newfile="$file.fixed";sed s/\.html/\.asp/ $file > $newfile;done