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

Scripting problem "syntax error in expression (error token is "0 0 - + 95 ")"



#!/bin/sh
S_CATXT1=`grep "Jun\ 28" /var/log/local1.1 |grep "READ: \^B20"|grep 21:777
|wc -`
S_CATXT2=`grep "Jun\ 28" /var/log/local1 |grep "READ: \^B20"|grep 21:777
|wc -l`
S_CATXT_T=$(( $S_CATXT1 + $S_CATXT2 ))
echo $S_CATXT_T

appshost2:/noc/scripts# ./txtme-102
./txtsmart-102: 0       0       0 - +      95 : syntax error in expression
(error token is "0       0 - +      95 ")


Hi, my script contains this 2 variables

S_CATXT1
S_CATXT2

and, i only add it using $(( $S_CATXT1 + $S_CATXT2 ))

but, i get error's.

Any ideas?



thnx,
louie...



-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: