From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078613510637.tru64-unix-managers.marc@archive.invalid> From: Nigel Thomas Date: Thu, 26 Jun 1997 10:32:29 +0000 To: tru64-unix-managers Subject: SUMMARY Help removing unwanted characters X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078613510637 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' outfile :g//s///g cat fn | sed 's/^V^M//g' > outfn :g//s///g $ cat | 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