Skip to contentSkip to conversation

Line Length Help

DISCUSSION Peter 2 participants 3 messages Oct 22, 2002 – Oct 24, 2002

lore
Share & tools
lore

Peter

author
#0 lore raw
Quoted 10 lines · Peter

Hi,
If I safe with Lynx a text in html format to a file.txt the lines are at the most 60 col long.

How can I change that to let say 90 col in order to get more text on one page for print-out?

Would sed do the trick, but how?

Since I did not get any answer I arrived with trial and error at the following to do the trick, almost:

tr -d '\012' < file.txt | groff -ms | lpr

This finally removes whatever is stubbornly holding the line length to 60 characters and prints ca. 100 characters on one line. Except it also removes the empty lines between paragraphs.

Anyone there who knows how to solve this final obstacle?

Thanks and regards

Signature · 7 lines
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
author
#2 lore raw

Thank you so much Jude! This will safe me up to 1/3rd of my print paper.

Quoted 1 line · [email protected] said:

I think fmt and newfmt both have line length command line switches.

This brings to question how does one know what are all the goodies hidden in the Linux box? By going thru all the Linux user commands in "Linux In A Nutshell" and with luck find the right command. May be O'Reilly should make an arrangement of the commands by function as well instead of only alphabetically.

Regards

Signature · 7 lines
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs