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: 3aoo-cvfd AT dea.spamcon.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] double sided printing script
  • Date: Fri, 24 Mar 2006 11:05:55 +1200

sindi keesan wrote:
>
> I think I ran across seq in 'shell scripting 101' on the web,
> under 'sort'.

Both seq and sort are in BL3.

> 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

That is: dollar open-curly i percent period asterisk close-curly

There's some quite powerful stuff hiding in BL3. :-)

Cheers,
Steven

____________________________
http://www.basiclinux.com.ru




Archive powered by MHonArc 2.6.24.

Top of Page