|
Posted by mmccaws2 on April 8, 2008, 5:16 pm
Please log in for more thread options > On Tue, 08 Apr 2008 22:12:18 +0200, Joost Diepenmaat wrote:
>
> >> My users are will be uploading a file from unix. I'm trying to save a
> >> step by formatting the file while in unix so they don't have to format
> >> it with
>
> >> "perl -p -e 's/\r/\r\n/' < $infile > $dosfile"
>
> >> The resulting file after copied to windows did not have a readable
> >> format. Is this a process that can only be done after the file
> >> transfer?
>
> > No, you're doing it wrong.
>
> > *ON UNIX*, you can do:
>
> > perl -p -e 's/\n/\r\n/' < $infile > $dosfile
>
> > Final results are dependent on the transfer protocol (i.e. do NOT
> > transfer those files with FTP in ASCII mode).
>
> What's wrong with
> $ todos < $infile > $dosfile
> ?
>
> Thanks,
> Rich
we're using scp that comes on HPUX. The results did seem to change.
Mike
|