Xref: utzoo comp.unix.xenix:8405 comp.sys.ibm.pc:37610 Path: utzoo!attcan!uunet!yale!cmcl2!dasys1!jpr From: jpr@dasys1.UUCP (Jean-Pierre Radley) Newsgroups: comp.unix.xenix,comp.sys.ibm.pc Subject: Re: converting line-feed to cr/lf in a file Summary: Use xcmalt Message-ID: <11099@dasys1.UUCP> Date: 4 Nov 89 01:27:59 GMT References: <636@holston.UUCP> Reply-To: jpr@jpradley (Jean-Pierre Radley) Organization: TANGENT Lines: 26 In article <636@holston.UUCP> barton@holston.UUCP (Barton A. Fisk) writes: >For reasons beyond my control (US Govt Computer System) I have >to translate all line-feed characters in my SCO Xenix system >text file to cr/lf's before sending them to a DOS front end >pre-editing site that bombs on lf's only. >I've tried using stty, but it seems this only works for >character dev's not files. May I point out that your Subject line is misleading. If you just wanted to change things in a file, a simple sed script would do the trick. It seems that you need to change lf to cr/lf << when transmitting a file to another machine >>. If you have Compuserve access, grab XCMALT from LIB 5 of the TANGENT Forum. If you don't. E-mail me and I will send you the source. XCMALT has an option to do the translation you ask for when transmitting files. It will also perform put and take operations, or transfers using xmodem or CompuServe B-Protocol. It can use scripts to automate logins to foreign systems. It can also capture your remote session to a file. -- Jean-Pierre Radley jpr@jpradley.uucp New York, NY 72160.1341@compuserve.com