Re: fixing .txt files sent from a MS$ user
On Fri, Apr 04, 2008 at 04:42:28PM +0100, Andr? C?sar de S? wrote:
> 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
>> Use dos2unix.
Doesn't that just change CR/LF?
Doug.
Reply to: