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

Chris Waters xtifr at dsp.net
Fri Aug 4 22:07:01 PDT 2000


On Fri, Aug 04, 2000 at 05:15:01PM -0400, Bill Jonas wrote:

>  lpr `echo $i |sed -e 's/\.html$/.ps/'`

This can be more efficiently expressed as:

  lpr ${i%%.html}.ps

Another option is to use the basename command:

 lpr `basename $i .html`.ps

Which still saves one process slot, and is probably a little faster.

cheers
-- 
Chris Waters   xtifr at dsp.net | I have a truly elegant proof of the
      or    xtifr at debian.org | above, but it is too long to fit into
                             | this .signature file.




More information about the svlug mailing list