From: Nigel Thomas <nigel () mis ! marleyext ! com>
To: tru64-unix-managers
Subject: SUMMARY Help removing unwanted characters
Date: Thu, 26 Jun 1997 10:32:29 +0000 [thread overview]
Message-ID: <96078613510637.tru64-unix-managers.marc@archive.invalid> (raw)
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@mis.marleyext.com
reply other threads:[~1997-06-26 10:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox