How about:
#tr --delete '\r' <$INFILE> $OUTFILE
and
#sed 's/\n/\r\n/' <$INFILE> $OUTFILE
?

Raider wrote:
> 
> On Sat, 27 Feb 1999 [EMAIL PROTECTED] wrote:
> > fromdos <windows-script >linux-script
> > is what I use.
> 
>         I don't say that is wrong.  But why do people need a utility to do
> that job (insert/remove 0x0D)?  Most of the programs I've seen to do that
> job are scripts which take a file from stdin, insert/remove 0x0D (CR I
> mean) and put the result on the stdout.  Or they are C programs which do
> the same thing.  Now, the scripts can be pretty slow.  Anyway, why use
> them?  zip/unzip have a feature that does that to text files.  So all you
> have to do is to zip the file and unzip it in a result file.  All can be
> done using just a pipe.  And it seems to me that it's a lot faster than a
> script - not so sure about the C programs, but it's for sure a lot faster
> than using getchar() and putchar().
> 
>         Raider
> --
>                 ``Liberate tu-temet ex inferis''

-- 
Catalin Bucur                                \|/
Hardware engineer                          ^(o o)^
mailto:[EMAIL PROTECTED]       ~~~~~~~~~oOO~~(_)~~OOo~~~~~~~~~

Reply via email to