Re: How to handle numeric variables in sh?

2005-02-19 Thread Alejandro Pulver
On Sat, 19 Feb 2005 20:16:23 +0100 JarJarBings <[EMAIL PROTECTED]> wrote: > hi, > > have a look at "man expr" > > regards > > Alejandro Pulver wrote: > > Hello, > > > > Is there a way to handle numeric variables (addition, multiplication, etc.) > > in 'sh' (or throught an external command)? >

Re: How to handle numeric variables in sh?

2005-02-19 Thread JarJarBings
hi, have a look at "man expr" regards Alejandro Pulver wrote: Hello, Is there a way to handle numeric variables (addition, multiplication, etc.) in 'sh' (or throught an external command)? Thanks and Best Regards, Ale ___ freebsd-questions@freebsd.org mai

Re: How to handle numeric variables in sh?

2005-02-19 Thread Alejandro Pulver
On Sat, 19 Feb 2005 09:33:11 -0700 Jon Drews <[EMAIL PROTECTED]> wrote: > Ale: > > > On Sat, 19 Feb 2005 12:55:59 -0300, Alejandro Pulver > <[EMAIL PROTECTED]> wrote: > > Hello, > > > > Is there a way to handle numeric variables (addition, multiplication, etc.) > > in 'sh' (or throught an exte

Re: How to handle numeric variables in sh?

2005-02-19 Thread Alejandro Pulver
On Sat, 19 Feb 2005 10:24:04 -0500 Scott Milliken <[EMAIL PROTECTED]> wrote: > Here's a code snippet of a script I use often to number a bunch of pics > in a directory that I think shows how to do what you want to do: > > $PICNUM=100 > for FNAME in DSC*.JPG > do >NEWNAME=My_Pictures-$PICNUM.

Re: How to handle numeric variables in sh?

2005-02-19 Thread Jon Drews
Ale: On Sat, 19 Feb 2005 12:55:59 -0300, Alejandro Pulver <[EMAIL PROTECTED]> wrote: > Hello, > > Is there a way to handle numeric variables (addition, multiplication, etc.) > in 'sh' (or throught an external command)? Here is a good short "HowTo" on calling bc: ---

Re: How to handle numeric variables in sh?

2005-02-19 Thread Scott Milliken
Here's a code snippet of a script I use often to number a bunch of pics in a directory that I think shows how to do what you want to do: $PICNUM=100 for FNAME in DSC*.JPG do NEWNAME=My_Pictures-$PICNUM.jpg mv $FNAME $NEWNAME PICNUM=$(($PICNUM+1)) done This works in /bin/sh from my FreeBSD 4

Re: How to handle numeric variables in sh?

2005-02-19 Thread Alejandro Pulver
On Sat, 19 Feb 2005 10:07:51 -0600 Eric Kjeldergaard <[EMAIL PROTECTED]> wrote: > On Sat, 19 Feb 2005 12:55:59 -0300, Alejandro Pulver > <[EMAIL PROTECTED]> wrote: > > Hello, > > > > Is there a way to handle numeric variables (addition, multiplication, etc.) > > in 'sh' (or throught an external

Re: How to handle numeric variables in sh?

2005-02-19 Thread Eric Kjeldergaard
On Sat, 19 Feb 2005 12:55:59 -0300, Alejandro Pulver <[EMAIL PROTECTED]> wrote: > Hello, > > Is there a way to handle numeric variables (addition, multiplication, etc.) > in 'sh' (or throught an external command)? > `man bc` -- If I write a signature, my emails will appear more personalised.

How to handle numeric variables in sh?

2005-02-19 Thread Alejandro Pulver
Hello, Is there a way to handle numeric variables (addition, multiplication, etc.) in 'sh' (or throught an external command)? Thanks and Best Regards, Ale ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-