#! /bin/sh
#
# strips "!" comments and tabs from file $1, and writes to file $1s
# (with an "s" appended).
#
# Also converts older namelists to Fortran90 standard form.
#
# This is useful for fortran compilers which can't handle comments
# or tabs in namelist input files.
#
# The first -e command contains a tab character which you can't see:
sed -e 's/\	/ /g' -e 's/\!.*//' -e 's.\$end./.' -e 's.\$.\&.'   <   $1   >   ${1}s
exit