|
Posted by mmccaws2 on April 8, 2008, 5:37 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
>
> > Sorry that wasn't quite right. I made the change and then scp'd. scp
> > on XP which is a product of Attachmate.
>
> > Mike
>
> How does one print hidden characters like '\n' in perl or cl?
>
> Mike
Also, I've never used unix2dos, is this a module or program?
Mike
|