baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- 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
-
Re: [BL] double sided printing script
, (continued)
-
Re: [BL] double sided printing script,
Ron Clarke, 03/22/2006
-
Re: [BL] double sided printing script,
sindi keesan, 03/22/2006
-
Re: [BL] double sided printing script,
Ron Clarke, 03/22/2006
-
Re: [BL] double sided printing script,
sindi keesan, 03/22/2006
-
Re: [BL] double sided printing script,
sindi keesan, 03/22/2006
-
Re: [BL] double sided printing script,
David Moberg, 03/23/2006
- Re: [BL] double sided printing script, sindi keesan, 03/23/2006
- Re: [BL] double sided printing script, Ron Clarke, 03/23/2006
- Re: [BL] double sided printing script, sindi keesan, 03/23/2006
- Re: [BL] double sided printing script, sindi keesan, 03/23/2006
-
Re: [BL] double sided printing script,
David Moberg, 03/23/2006
- Re: [BL] double sided printing script, 3aoo-cvfd, 03/23/2006
- Re: [BL] double sided printing script, sindi keesan, 03/23/2006
- Re: [BL] double sided printing script, sindi keesan, 03/24/2006
-
Re: [BL] double sided printing script,
sindi keesan, 03/22/2006
-
Re: [BL] double sided printing script,
sindi keesan, 03/22/2006
-
Re: [BL] double sided printing script,
Ron Clarke, 03/22/2006
-
Re: [BL] double sided printing script,
sindi keesan, 03/22/2006
-
Re: [BL] double sided printing script,
Ron Clarke, 03/22/2006
Archive powered by MHonArc 2.6.24.