SUMMARY Help removing unwanted characters

From: Nigel Thomas <nigel_at_mis.marleyext.com>
Date: Thu, 26 Jun 1997 11:32:29 +0100

Hi people.
To many responses to mention !!
Please take your pick !
When entering ^M type ^V first to enter the literal of control M, examples:

use mcopy
use dos2unix
perl -pi~ -e 's/\cM/ /g' filename
        This will do an inplace edit making a backup with a ~ after it.
perl -pi.bak -e 's/\r//;' filename
:%s/^M//g
sed 's/^M/ /' inputfile > outputfile
:1,$s/^V^M/ /g
:1,$ s/^M//g
cat file | sed s/"^M"//g > newfile
file.in tr -d '\015' file.out
tr '\015' ' ' < infile > outfile
tr -d '\015' <infile >outfile
<esc>:g/<ctrl-V><ctrl-M>/s///g<ret>
cat fn | sed 's/^V^M//g' > outfn
:g/<ctrl><v><ctrl><m>/s//<space>/g
$ cat <original_file> | tr -d '\015' > new_file

Thanks again - Its amazing how such a little problem could cause me such a
large headache.

Nigel Thomas
Marley Extrusions Ltd
Lenham
Nr Maidstone
Kent
England

Odd job man ! nigel_at_mis.marleyext.com
Received on Thu Jun 26 1997 - 13:17:41 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT