On Sun, Nov 24, 2002 at 10:32:14PM -0600, ZephyrQ wrote: > I'm trying to format the debian install manual (text version) for > printing and I'm trying to save a couple of trees. Is there an easy way > to strip the line breaks so the text will come out unformatted? This > way I can reduce the font and print whole pages of itty bitty debian > install text which, in my own sick way, helps me find info I need > quicker...
there's more than one way--here's one from perl (untested, so understand everything you execute yourself): #!/usr/bin/perl local($/) = ''; # slurp \n\n paragraphs while(<>){ s/\n/ /g; # ditch linefeeds s/\s+/ /g; # squeeze white space down to one space print "$_\n";# print line with (one) end-of-line char } then perl yourScriptName.pl < input.text.fyl > output.text.fyl -- I use Debian/GNU Linux version 2.2; Linux server 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i586 unknown DEBIAN NEWBIE TIP #84 from USM Bish <[EMAIL PROTECTED]> : Wondering if you could change the bindings of CTRL+ALT+DEL, so that it did a shutdown instead of a reboot? Sure! As root, edit /etc/inittab. The line to edit looks like this: ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now Just change "-r" to "-h". Also see http://newbieDoc.sourceForge.net/ ... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]