Where is dos2unix / unix2dos ?

Where is dos2unix / unix2dos ?

Post by Sergey Chemishkia » Fri, 14 Mar 1997 04:00:00



Where can one find dos2unix and unix2dos utilities for Linux ?
If somebody has the code, please send me !

Sergey

====================================================================
Sergey Chemishkian
Aerospace and Mechanical Eng., University of Arizona

"Smile more, gentlemen!
 Serious face doesn't imply intellect:
 the most stupid things in the world are done with this very face..."

 Baron M.

 
 
 

Where is dos2unix / unix2dos ?

Post by Ulrich Eckhard » Sat, 15 Mar 1997 04:00:00



> Where can one find dos2unix and unix2dos utilities for Linux ?
> If somebody has the code, please send me !

Hi,

this is an alias for recode. Have a look at your /etc/profile

Uli
--

http://people.frankfurt.netsurf.de/uli
Truly great madness can not be achieved without significant
intelligence. (Henrik Tikkanen)

 
 
 

Where is dos2unix / unix2dos ?

Post by Pierfrancesco Cac » Sat, 15 Mar 1997 04:00:00



> Where can one find dos2unix and unix2dos utilities for Linux ?
> If somebody has the code, please send me !

On my machine I have the todos/fromdos pair and also cr that perform the
same as unix2dos/dos2unix

Pf

--

---------------------------------------------------------------------------
  Pierfrancesco Caci  |      internet:      |

   Firenze - Italia   |                     | of Otherwise Simple Affairs
     Linux penny 2.1.29 #4 Tue Mar 11 08:57:53 CET 1997 i586 unknown

 
 
 

Where is dos2unix / unix2dos ?

Post by Brett Kosins » Sun, 16 Mar 1997 04:00:00



> Where can one find dos2unix and unix2dos utilities for Linux ?
> If somebody has the code, please send me !

> Sergey

  You are referring to the programs that convert text files from unix to dos
or vice versa (sorry, the only unix I know is Linux)?  These programs in
Linux are called fromdos and todos.  They should come with any standard
distribution, AFAIK, so you should have them.

Brett.

 
 
 

Where is dos2unix / unix2dos ?

Post by dbee.. » Wed, 19 Mar 1997 04:00:00



|>
|> Where can one find dos2unix and unix2dos utilities for Linux ?
|> If somebody has the code, please send me !

Although they did not come with my Red Hat distribution, they are on sunsite.
Sorry, I don't remember which directory.  You could also pull them out of
a slackware distribution.

--- Internet Message Header Follows ---
Path:
news.remcomp.fr!rain.fr!news-paris.gsl.net!news.gsl.net!cyclic.gsl.net!news.gsl.net!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!howland.erols.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!nntp-xfer-1.csn.net!boulder!usenet

Newsgroups: comp.os.linux.misc
Subject: Re: Where is dos2unix / unix2dos ?
Date: 18 Mar 1997 18:47:10 GMT
Organization: University of Colorado, Boulder
Lines: 8



NNTP-Posting-Host: dogstar.colorado.edu

-- end **** Sent by inVivo. The BBS of Life Sciences, Paris, France,

 
 
 

Where is dos2unix / unix2dos ?

Post by Dave Beem » Wed, 19 Mar 1997 04:00:00



|>
|> Where can one find dos2unix and unix2dos utilities for Linux ?
|> If somebody has the code, please send me !

Although they did not come with my Red Hat distribution, they are on sunsite.
Sorry, I don't remember which directory.  You could also pull them out of
a slackware distribution.

 
 
 

Where is dos2unix / unix2dos ?

Post by Stanislav (St » Thu, 20 Mar 1997 04:00:00




> |>
> |> Where can one find dos2unix and unix2dos utilities for Linux ?
> |> If somebody has the code, please send me !

> Although they did not come with my Red Hat distribution, they are on sunsite.
> Sorry, I don't remember which directory.  You could also pull them out of
> a slackware distribution.

Hmm... On my Slack 96, the above 2 files are called fromdos and todos.
Check for those

--
 *  Stanislav  N. Vardomskiy  http://www.ncf.carleton.ca/~cn119  *  Linux  *
 *  I don't speak for my employers.  I barely speak for myself.  *  since  *
 *       I use Linux! Real geeks have character prompt.          *  August *
 * (C) 1997 Redistribution over Microsoft Network is prohibited  *  1994   *

 
 
 

Where is dos2unix / unix2dos ?

Post by Volker Do » Mon, 24 Mar 1997 04:00:00




>|>
>|> Where can one find dos2unix and unix2dos utilities for Linux ?
>|> If somebody has the code, please send me !
>Although they did not come with my Red Hat distribution, they are on sunsite.
>Sorry, I don't remember which directory.  You could also pull them out of
>a slackware distribution.

Or you can use the following aliases:

alias unix2dos='recode lat1:ibmpc'
alias dos2unix='recode ibmpc:lat1'

Of course you need the recode-package, too.

Bye, Volker.
---

 
 
 

Where is dos2unix / unix2dos ?

Post by Tim Tassoni » Sat, 29 Mar 1997 04:00:00





> Or you can use the following aliases:

> alias unix2dos='recode lat1:ibmpc'
> alias dos2unix='recode ibmpc:lat1'

> Of course you need the recode-package, too.

> Bye, Volker.

Well, I wouldn't do this, as this will convert as well the character
set, which you might not want.

Bye Tim

 
 
 

Where is dos2unix / unix2dos ?

Post by Kevin Georgis » Fri, 04 Apr 1997 04:00:00


---begin dos2unix---
#!/usr/local/bin/perl
while (<>) { s/\r\n/\n/; print; }
---end dos2unix---

And its dual:

---begin unix2dos---
#!/usr/local/bin/perl
while (<>) { s/\n/\r\n/; print; }
---end unix2dos---

_________________________________________________________


                     Or: http://www.mbnet.mb.ca/~georgkev
Technical Services Committee
Blue Sky Community Networks of Manitoba Inc.
_________________________________________________________

 
 
 

Where is dos2unix / unix2dos ?

Post by Andrew Cos » Fri, 04 Apr 1997 04:00:00



>---begin dos2unix---
>#!/usr/local/bin/perl

Alternatively, look for "todos" and "fromdos".
They do the same as dos2unix/unix2dos, and are alot less painful on a
slow system (like mine) than running perl :)

Chances are, they'll already be sitting in /usr/bin.

 
 
 

Where is dos2unix / unix2dos ?

Post by Ramon Fernandez Mari » Sat, 12 Apr 1997 04:00:00



: >---begin dos2unix---
: >#!/usr/local/bin/perl
:
: Alternatively, look for "todos" and "fromdos".
: They do the same as dos2unix/unix2dos, and are alot less painful on a
: slow system (like mine) than running perl :)
:
: Chances are, they'll already be sitting in /usr/bin.

        Here is a C version, if anyone likes it

/* 2dos */
#include<stdio.h>
main(void) { char c; while((c=getchar())!=EOF) (c==10) ? putchar(13),putchar(10) : putchar(c);

Quote:}

/* 2unix */
#include<stdio.h>
main(void) { char c; while((c=getchar()) != EOF) if (c!=(13)) putchar(c); }

        Just in case you like to do things yourself.

-- Mon.

 
 
 

1. dos2unix & unix2dos utility for Linux

Does Linux have dos2unix or unix2dos utilities?

Thanks in advance.

:)

--

Systems Programmer                          Tel     : +65 - 4713949
Ministry of Education                       Fax     : +65 - 4737513

2. Possibly stupid question

3. dos2unix & unix2dos

4. configure: error: not found - you need to install kdelibs first...

5. Importing users

6. dos2unix & unix2dos in AIX 3.2

7. changing the window border color

8. Q: dos2unix / unix2dos with multiple files

9. WARNING: dos2unix/unix2dos

10. dos2unix, unix2dos text conversion programs??

11. unix2dos and dos2unix

12. unix2dos dos2unix Permission problems