On Mon, Mar 25, 2002 at 07:04:37PM -0800, William R Ward wrote:
> [EMAIL PROTECTED] (Neil Bowers) writes:
> > Recently I had need of a unix2dos and dos2unix. I'd guess we've all
> > written multiple of versions of these, since there's not much to them.
> > 
> > This time I had a look at scripts section on CPAN, figuring there'd
> > be versions there. But there aren't.
> > 
> > So having knocked up them up, are they worth putting on CPAN?
> > And if so, what Category should they be given - Text?
> 
> What, you mean "perl -pe 's/\015\012/\n/g'" and "perl -pe 's/\n/\015\012/g'"?
> Doesn't seem like it's necessary to me to even bother uploading such a thing.

So you think, but try working around non-UNIX and non-Perl people for
a while, and the above are deep magic that bestows upon you the aura
of a mighty guru.

> If you're in the neighborhood though, how about mac2dos, mac2unix, unix2mac,
> and dos2mac?  (Mac uses \015 only)

What would be cool is to have *one* script that sniffs which CR/LF is
being used in the source file(s).  The destination CR/LF would be by
default the execution platform's, but could be forced to be something
else.  "crlf foo.txt", "crlf -t cr bar.txt".

> --Bill.
> 
> -- 
> William R Ward            [EMAIL PROTECTED]          http://www.wards.net/~bill/
> -----------------------------------------------------------------------------
>      If you're not part of the solution, you're part of the precipitate.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to