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)?
>
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
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
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.
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:
---
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
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
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.
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-