Skip to Content.
Sympa Menu

baslinux - Re: [BL] double sided printing script

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] double sided printing script
  • Date: Fri, 24 Mar 2006 15:16:20 +0000 (UTC)


for i in *.ppm; do ppmtopgm $i | pgmtopbm | pamcut -75 top > $i.pbm; done

Bleach produced par5-00001.ppm.pbm.
Is there a simple way to remove the ppm from the file name
by adding something to the above script?

Instead of: > $i.pbm; done
Try this: > ${i%.*}.pbm; done


Cheers,
Steven

That worked perfectly this morning and it is much simpler than the long complicated solution involving 'cut' that my partner was working on.

BL does many things more economically.

Sindi




Archive powered by MHonArc 2.6.24.

Top of Page