#!/bin/sh
# Filter to change numbers of the form 1.234D56 to 1.234e56
# The former is emitted by Fortran, the latter is acceptable to C.
# Usage:
#   f77dfix file1 >file2
#   ... | f77dfix | ...
sed -e 's/\([0123456789.]\)[dD]\([+-]\{0,1\}[0123456789]\)/\1e\2/g' $1
