The main paragraph of my help request was:
>I have to perform a unix2dos operation over my text files in order to print >them in a printer attached to a Win NT system. I?m new in the Digital Unix >( running on an Alpha 500 ), and can?t find the 'unix2dos' utiliy or any >means of doing the same.
Thanks to the interest of all of you that answered me so quickly:
J. Carlos Sanchez Rivas <csanchez_at_cirp.es>
Joe Spanicek <joe_at_resptk.bhp.com.au>
Michel Cyr <Michel_Cyr_at_SIDOCI.qc.ca>
Steve Madden <smadden_at_csu.edu.au>
Jeff Stelzner <jeffs_at_esca.com>
Charlie McCarty <charlie_mccarty_at_cargill.com>
Ken Teh <teh_at_anl.gov>
Dale Cook <cdm_at_Hyperk.com>
Serge Munhoven <MUNHOVEN_at_OLIVE.MSM.ULG.AC.BE>
Knut Helleboe <nut.Hellebo_at_nho.hydro.com>
Sorry if forget anyone!
Well, firstly say that I wasn't explicit enough in my request becouse I didn't note that Not only did I need any means of converting the Unix LF into DOS
LF+CR, but what I really needed was a character translation from ANSI to OEM ( and from OEM to ANSI ).
These are the suggestions about the LF / LF+CR concern:
* The most effective:
sed 's/$/^M/' < unix_file > dos_file
* FTP from a DOS machine ( ftp adds CRs as needed ).
* I also was sent c souce code to solve the problem.
Appart from this, I was told to look the next packages:
* DEC Pathworks: DU, Lanmaneger connectivity.
* Samba: Lanmanager connectivity. This one easyly foundable on the web ( looks very good ).
* mtools package: Some utilities arround Microsoft DOS.
I didnt't want to install any package in order to obtain these two tiny tools, so I have enhanced the source code I received so that it performs an ANSI/OEM - OEM/ANSI ( dos2unix/unix2dos ) translation.
Firstly, I obtained the translation tables with a little program based on Windows API calls AnsiToOem and OemToAnsi. Secondly I modified the program applying this tables before writing each character.
I enclose a ZIP file including the modified source and additional files from the original package (man pages, readme and so on ).
Thanks to all of you again!
Cesar Arraiga Egues <cesar_at_arrakis.es>
Received on Sat Jun 08 1996 - 21:07:30 NZST