[svlug] How to print many html files at on time?

kmself@ix.netcom.com kmself at ix.netcom.com
Thu Aug 3 20:21:01 PDT 2000


On Fri, Aug 04, 2000 at 10:35:04AM +0800, Dai  Yuwen wrote:
> Hi,
> 
> I have many html files in a directory.  I want to print those files very
> quickly without opening a file after another in a browser . How can I to
> this?

Depending on the level of formatting you want:

    for file in *.html
	do
		# select one of the following lines for your formatting
		#   preference:
	    lynx -dump $file | lpr
	    lynx -dump $file | pr | lpr
	    lynx -dump $file | pr | mpage -2 | lpr
	done

...note that lynx is a text-mode browser and that it will render only
the textual components of the webpages.  I don't know a general solution
to question of printing graphically rendered web content.  Netscape may
have some command-line functionality for this, but I wouldn't be sure of
that.

-- 
Karsten M. Self <kmself at ix.netcom.com>     http://www.netcom.com/~kmself
 Evangelist, Opensales, Inc.                    http://www.opensales.org
  What part of "Gestalt" don't you understand?   Debian GNU/Linux rocks!
   http://gestalt-system.sourceforge.net/    K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.svlug.org/archives/svlug/attachments/20000803/f49f962a/attachment.bin


More information about the svlug mailing list