From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from a.mail.sonic.net ([64.142.16.245]) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1I31zc-0006U4-00 for ; Mon, 25 Jun 2007 23:45:28 -0400 Received: from Reason (mail.jfcl.com [64.142.52.93]) (authenticated bits=0) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id l5Q3jRvq020020 for ; Mon, 25 Jun 2007 20:45:27 -0700 From: "Deborah Norling" To: "'Speakup is a screen review system for Linux.'" Subject: RE: Trying out Slackware Date: Mon, 25 Jun 2007 20:45:26 -0700 Organization: Spare Time Gizmos Message-ID: <007801c7b7a4$6f7226a0$eb01010a@Reason> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 In-Reply-To: Thread-Index: Ace3nndxa4g4pIScQ2+R9ob1cPLpMAABT8Ug X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.9 Precedence: list Reply-To: debee@jfcl.com, "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2007 03:45:28 -0000 This thread has morphed in to discussing ways to convert line endings. I think the most portable tool is awk. I just love awk. In the below one-liners, bns is the Braille 'N speak, or Macintosh; both use only CR and not LF at the ends of lines: from Unix to bns awk '{ gsub("\r", "\n"); print $0;}' macfile.txt > unixfile.txt from bns to unix awk '{ gsub("\r", "\n"); print $0;}' macfile.txt > unixfile.txt unix to Windows awk '{ sub("\r$", ""); print }' winfile.txt > unixfile.txt windows to unix awk 'sub("$", "\r")' unixfile.txt > winfile.txt Works in Netbsd, freebsd, Windows, DOS, ultrix, even vms, provided you got awk. --Debee