#! /bin/sh # # strips "!" comments and tabs from file $1, and writes to file $1s # (with an "s" appended). # # 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/\!.*//' < $1 > ${1}s exit