Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: C-Shell Script



--------------------------------------------------------
tlug note from Venkatesh RAGHAVAN <raghavan@example.com>
--------------------------------------------------------
Hello,
I am trying to use the 'expr' function in my shell script to calculate
to variables. My Shell script statement looks like below;

E_COORD=`expr \($E-$W\)\*\)\*\($X-1)\)/$COL+$W`
N_COORD=`expr $N-\(\($N-$S\)\*\($Y-1)/$ROWS\)`
echo $E_COORD $NCOORD

I am getting an error message which says expr:non-numeric expression.
Can any one please tell me what is wrong with using the expr function.
Thanks in advance 
-----------------------------------------------------------------
a word from the sponsor will appear below
-----------------------------------------------------------------
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.   info@example.com
Tel: 03-3351-5977   Fax: 03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links