[OS X TeX] Pdftricks problem

Piet van Oostrum piet at cs.uu.nl
Sun Feb 6 12:30:32 EST 2005


>>>>> Peter Dyballa <Peter_Dyballa at Web.DE> (PD) wrote:

>PD> Am 05.02.2005 um 16:23 schrieb Martin Buchmann:

>>> i'm still puzzled that i can't find seq

>PD> You don't need seq! I remember this programme vaguely ... Giving it a
>PD> numeric argument it creates the sequence of numbers from 1 up to the
>PD> argument!

>PD> You could try in bash:

>PD> i=i
>PD> while [ $i -le number ]
>PD>    do
>PD>    this or that
>PD>    i=`expr $i + 1`
>PD> done

>PD> or a replacement as shell function:

>PD> seq () { i=1; while [ $i -le $1 ]; do echo "$i "; i=`expr $i + 1`; done ; }

Or use this shell script as the seq program:

#! /bin/sh
n=1
while [ $n -le $1 ]
do echo $n
   n=`expr $n + 1`
done

-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: piet at vanoostrum.net
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list