Re: fixing .txt files sent from a MS$ user
Use dos2unix.
//Megatron
On 04/04/2008, Douglas A. Tutty <dtutty@porchlight.ca> wrote:
> Hello all,
>
> My niece sends some of her schoolwork to my wife (e.g. essays) for her
> to read. First she sent .doc files which I can't access properly (no, I
> do no run OO) although I could get the jist. I then suggested that she
> send plain text.
>
> I don't run any locales but have LANG=C.
>
> Her plain-text files are fine, except that apostrophies (singel-quote)
> (') are replaced with "\222", opening quotes (") with "\223", and
> closing quotes (") with "\224".
>
> Other than writing a python script, can someone give me a simple command
> to fix this so that it is not so distracting? Ideally, I'd put it into
> an executable file and pipe the file through it on it's way to lpr.
>
> e.g.
> $ cool-writing.txt | antiAJ | lpr -Pepson
>
> Thanks,
>
> Doug.
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
--
Regards,
//Megatron
Reply to: