Help: Remove or Replace "New-line" & "Return" characters

Help: Remove or Replace "New-line" & "Return" characters

Post by Vijith Gunawrdhan » Fri, 07 Aug 1998 04:00:00



I think this will remove all new line charecters from the input_file. I
didn't check this.

tr -d "\012" < input_file > output_file

 
 
 

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


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

2. gcc compiling problems

3. problems with mysql-installation

4. GETSERVBYNAME()????????????????????"""""""""""""

5. dt & SE/30 ?

6. "Box", "line drawing", "special graphics" characters in aixterm

7. Attack using a shared library, how?

8. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

9. How to type "tab" and "new line" character?

10. Type "(", ")" and "{", "}" in X...

11. "carriage return" and "line feed" encoding

12. replacing characters at column "x" every "n'th" line