Help: use SED to move or replace "New-line" & "return" char

Help: use SED to move or replace "New-line" & "return" char

Post by Charles Bentl » Fri, 07 Aug 1998 04:00:00




Quote:

>Nothing!!!!!

tempfile=/tmp/`basename ${0}.$$`

if [ $# -ne 1 ] ; then
        echo ${0}: I must have a file to work on
fi

if [ -r $1 ] ; then
        if [ -w $1 ] ; then
                sed -e 's/<imbeded c/r (or is is l/f?)>//' $1 > $tempfile
                mv $tempfile $1
        else
                echo ${0}: Sorry, I can\'t change $1
        fi
else
        echo ${0}: I can\'t read $1
fi