[Smaug] CR/LF, wordwrap, newline & ASCII

Phil White cerise at littlegreenmen.armory.com
Thu, 13 Jun 2002 18:57:56 -0700 (PDT)

strings (now that I think about it) should spit out proper formatting
no matter what newline sequence is there, since it spits out a newline
after each readable text sequence.  That's an excellent solution to the

I find it unfortunate that we have some^Wa unhelpful person on this
list who responds rather flippantly to potentially important questions.


Paul Thomas spat forth:

> Well maybe a context would be more helpful. I got into this cause
> some Mac-based person zipped up some 'plain text' files with Stuffit
> and sent them to me as an attachment. Apparently the origin of the
> 'plain text' files were emails the guy received with his Mac version
> of Eudora, and he saved them as 'plain text' files.
> So I unzipped this mess easily enough, but when trying to read the
> text files with 'less' or 'pico', the text all ran together and
> were end of lines had a ^M character followed by a space or perhaps
> even a tab space, sometimes two ^M characters like: ^M^M. I was able
> to:
> strings some.txt > some.fixed.txt
> and then read the file successfully formatted as it should have been
> without the ^M characters visible.
> When I reported this to the sender, he replied that I must be using
> some old text reader from the 70's.
> What think?