Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* dos2unix/unix2dos file conversion
@ 1999-03-09  5:00 John Allen
  1999-03-09  5:00 ` Serguei Patchkovskii
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: John Allen @ 1999-03-09  5:00 UTC (permalink / raw)


Hi:

Anybody know where I could download a dos2unix/unix2dos
file conversion set of utilities for Digital Unix?

John Allen



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

* Re: dos2unix/unix2dos file conversion
  1999-03-09  5:00 dos2unix/unix2dos file conversion John Allen
@ 1999-03-09  5:00 ` Serguei Patchkovskii
  1999-03-10  5:00 ` Bob Koehler
  1999-03-10  5:00 ` Nikola Milutinovic
  2 siblings, 0 replies; 5+ messages in thread
From: Serguei Patchkovskii @ 1999-03-09  5:00 UTC (permalink / raw)


John Allen (john.allen@geonet-tech.com) wrote:
: Anybody know where I could download a dos2unix/unix2dos
: file conversion set of utilities for Digital Unix?

Download? What do you need to download 'em for?

This is dos2unix:

/bin/sed -e 's/^M$//' -e '$s/^Z//'

This is unix2dos:

/bin/sed -e 's/$/^M/' -e '$a\^J^Z^J'

In both cases, ^M, ^Z, and ^J are corresponding control characters,
which can be entered in vi (and many interactive shells) using the 
Control-V escape. 

Regards,

/Serge.P

P.S. Don't try this in csh, tcsh, or any other shell with broken
apostrophe handling.



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

* Re: dos2unix/unix2dos file conversion
  1999-03-09  5:00 dos2unix/unix2dos file conversion John Allen
  1999-03-09  5:00 ` Serguei Patchkovskii
  1999-03-10  5:00 ` Bob Koehler
@ 1999-03-10  5:00 ` Nikola Milutinovic
  1999-03-10  5:00   ` Dr. J.C.Hill
  2 siblings, 1 reply; 5+ messages in thread
From: Nikola Milutinovic @ 1999-03-10  5:00 UTC (permalink / raw)


John Allen wrote:
> 
> Hi:
> 
> Anybody know where I could download a dos2unix/unix2dos
> file conversion set of utilities for Digital Unix?

DU 4.0 has a subset MTOOLS (MS-DOS Tools), which, I think, includes those two
commands

Nix.
-- 
... The last thing I saw was this Big Bang!



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

* Re: dos2unix/unix2dos file conversion
  1999-03-10  5:00 ` Nikola Milutinovic
@ 1999-03-10  5:00   ` Dr. J.C.Hill
  0 siblings, 0 replies; 5+ messages in thread
From: Dr. J.C.Hill @ 1999-03-10  5:00 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

Nikola Milutinovic wrote:
> 
> John Allen wrote:
> >
> > Hi:
> >
> > Anybody know where I could download a dos2unix/unix2dos
> > file conversion set of utilities for Digital Unix?
> 
> DU 4.0 has a subset MTOOLS (MS-DOS Tools), which, I think, includes those two
> commands
> 
> Nix.
> --
> ... The last thing I saw was this Big Bang!

The subset is OSFDOSTOOLSxxx. dos2unix and unix2dos are not explicitly
included, but mcopy appears to do a similar job. Try "man mtools". I've
certainly handled DOS floppies successfully on a D.U. box with these
utilities (but obviously haven't tested all possibilities).

Regards,
John Hill

[-- Attachment #2: Card for John Hill --]
[-- Type: text/x-vcard, Size: 366 bytes --]

begin:          vcard
fn:             John Hill
n:              Hill;John
org:            University of Cambridge
adr:            Cavendish Lab.;;Madingley Road;Cambridge;;CB3 0HE;U.K.
email;internet: hill@hep.phy.cam.ac.uk
tel;work:       01223-337243
tel;fax:        01223-353920
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


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

* Re: dos2unix/unix2dos file conversion
  1999-03-09  5:00 dos2unix/unix2dos file conversion John Allen
  1999-03-09  5:00 ` Serguei Patchkovskii
@ 1999-03-10  5:00 ` Bob Koehler
  1999-03-10  5:00 ` Nikola Milutinovic
  2 siblings, 0 replies; 5+ messages in thread
From: Bob Koehler @ 1999-03-10  5:00 UTC (permalink / raw)



In article <36e576d4.4636386@news.mtt.net>, john.allen@geonet-tech.com (John Allen) writes:
>Hi:
>
>Anybody know where I could download a dos2unix/unix2dos
>file conversion set of utilities for Digital Unix?
>


Got mine off gatekeeper years ago, but it's no longer responding.
Try DEC's web site. (www.unix.digital.com).

----------------------------------------------------------------------
Bob Koehler                     | Computer Sciences Corporation
Hubble Space Telescope Payload  | Federal Sector, Civil Group
 Flight Software Team           | please remove ".aspm" when replying




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

end of thread, other threads:[~1999-03-10  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-09  5:00 dos2unix/unix2dos file conversion John Allen
1999-03-09  5:00 ` Serguei Patchkovskii
1999-03-10  5:00 ` Bob Koehler
1999-03-10  5:00 ` Nikola Milutinovic
1999-03-10  5:00   ` Dr. J.C.Hill

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