tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY Help removing unwanted characters
@ 1997-06-26 10:32 Nigel Thomas
  0 siblings, 0 replies; only message in thread
From: Nigel Thomas @ 1997-06-26 10:32 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-06-26 10:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-26 10:32 SUMMARY Help removing unwanted characters Nigel Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox