* 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 ` Nikola Milutinovic
1999-03-10 5:00 ` Bob Koehler
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 ` Nikola Milutinovic
1999-03-10 5:00 ` Dr. J.C.Hill
1999-03-10 5:00 ` Bob Koehler
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-09 5:00 dos2unix/unix2dos file conversion John Allen
1999-03-09 5:00 ` Serguei Patchkovskii
1999-03-10 5:00 ` Nikola Milutinovic
@ 1999-03-10 5:00 ` Bob Koehler
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 ` Nikola Milutinovic
1999-03-10 5:00 ` Dr. J.C.Hill
1999-03-10 5:00 ` Bob Koehler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox