Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Unix2Dos
@ 1996-10-28  5:00 Herv� DUCHENNE CRETIER
  1996-10-29  5:00 ` Unix2Dos Bob Vickers
  1996-10-29  5:00 ` Unix2Dos John Normann Hansen
  0 siblings, 2 replies; 5+ messages in thread
From: Herv� DUCHENNE CRETIER @ 1996-10-28  5:00 UTC (permalink / raw)



Hello OSF people

I'm looking for a version of Unix2Dos and Dos2Unix for DUx 3.2 or
something which can do the same...

If it's possible, could u answer by an E-Mail
    duchenne@pratique.fr


Thanx, Herv�



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Unix2Dos
  1996-10-28  5:00 Unix2Dos Herv� DUCHENNE CRETIER
@ 1996-10-29  5:00 ` Bob Vickers
  1996-10-29  5:00 ` Unix2Dos John Normann Hansen
  1 sibling, 0 replies; 5+ messages in thread
From: Bob Vickers @ 1996-10-29  5:00 UTC (permalink / raw)
  To: duchenne


Herv=E9 DUCHENNE CRETIER wrote:
> =

> I'm looking for a version of Unix2Dos and Dos2Unix for DUx 3.2 or
> something which can do the same...
> =

> If it's possible, could u answer by an E-Mail
>     duchenne@pratique.fr
> =


Here is a simple shell script version of dos2unix. It doesn't preserve
permissions though:

#! /bin/ksh
# convert dos files to Unix by removing carriage returns.
for f in $@
do
        tr -d '\015' <$f >${f}+ && mv -i $f ${f}~ && mv -i ${f}+ $f
done


Bob
-- =

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
Bob Vickers			R.Vickers@dcs.rhbnc.ac.uk
Department of Computer Science, Royal Holloway College, University of
London
WWW:	http://www.dcs.rhbnc.ac.uk/%7Ebobv/
Phone:	+44 1784 443691



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Unix2Dos
  1996-10-28  5:00 Unix2Dos Herv� DUCHENNE CRETIER
  1996-10-29  5:00 ` Unix2Dos Bob Vickers
@ 1996-10-29  5:00 ` John Normann Hansen
  1 sibling, 0 replies; 5+ messages in thread
From: John Normann Hansen @ 1996-10-29  5:00 UTC (permalink / raw)



In article <32746DE4.1E35@pratique.fr>, duchenne@pratique.fr says...
>
>Hello OSF people
>
>I'm looking for a version of Unix2Dos and Dos2Unix for DUx 3.2 or
>something which can do the same...
>
>If it's possible, could u answer by an E-Mail
>    duchenne@pratique.fr
>
>
>Thanx, Herv�

It's part of the Pathworks (DOS Connectivity) Layered Prod.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* unix2dos
@ 1996-11-14  5:00 John Bringolf
  1996-11-19  5:00 ` unix2dos Rich Signell
  0 siblings, 1 reply; 5+ messages in thread
From: John Bringolf @ 1996-11-14  5:00 UTC (permalink / raw)



Anyone have unix2dos utility for DU4
or have a site I can get it from..

Thanks



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unix2dos
  1996-11-14  5:00 unix2dos John Bringolf
@ 1996-11-19  5:00 ` Rich Signell
  0 siblings, 0 replies; 5+ messages in thread
From: Rich Signell @ 1996-11-19  5:00 UTC (permalink / raw)



John Bringolf wrote:
> 
> Anyone have unix2dos utility for DU4
> or have a site I can get it from..
> 
> Thanks

I built GNU's "recode" (ftp://prep.ai.mit.edu/pub/gnu/recode-3.4.tar.gz)
which compiles just fine on DU4.  Then I made one line scripts called
"unix2dos":

recode ascii:ibmpc $1

and "dos2unix":

recode ibmpc:ascii $1

works for me!
-- 
Rich Signell               |  rsignell@crusty.er.usgs.gov
U.S. Geological Survey     |  (508) 457-2229  |  FAX (508) 457-2310
384 Woods Hole Road        |  http://crusty.er.usgs.gov/rsignell.html
Woods Hole, MA  02543-1598 |



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1996-11-19  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-11-14  5:00 unix2dos John Bringolf
1996-11-19  5:00 ` unix2dos Rich Signell
  -- strict thread matches above, loose matches on Subject: below --
1996-10-28  5:00 Unix2Dos Herv� DUCHENNE CRETIER
1996-10-29  5:00 ` Unix2Dos Bob Vickers
1996-10-29  5:00 ` Unix2Dos John Normann Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox