🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cam.sug
Article #456

Duplicate newline characters

#456
From: Tim Cole
Date: Fri, 03 May 1996 00:00
17 lines
1138 bytes
I have a Sun Solaris 2 machine and a Mac, both on a Mac network. The Mac
has a DOS card, and DOS has a partition on the Mac disk. If I copy a file
from the DOS partition to the Sun, all newline \12 characters in the file
are duplicated.

I ought to be able to remove the duplicates using tr, but have so far failed.

It is easy to squeeze all \12 strings to a single newline using tr -s
'\12', but I want to retain the duplicates in the original file that
represent blank lines.
Please, how can I do this?

Tim Cole

Tim.Cole@mrc-dunn.cam.ac.uk     tel: +44 1223 426356    fax: +44 1223 426617
MRC Dunn Nutrition Centre, Downhams Lane, Milton Road, Cambridge CB4 1XJ, UK
Technical Details
Message-ID: <v01530500adad2b5ea6f7@[193.60.82.70]>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fbee8,161fd9e441a468cd,start
X-Google-Attributes: gidfbee8,public
From: Tim.Cole@mrc-dunn.cam.ac.UK (Tim Cole)
Subject: Duplicate newline characters
Date: 1996/05/03
Message-ID: <v01530500adad2b5ea6f7@[193.60.82.70]>
X-Deja-AN: 152783106
distribution: cam
organization: cam-cl.news/mail.gateway
content-type: text/plain; charset="us-ascii"
mime-version: 1.0
newsgroups: cam.sug