Article View: comp.unix.shell
Article #170simple csh question
From: Ben Bryant
Date: Tue, 28 Jul 1992 00:58
Date: Tue, 28 Jul 1992 00:58
17 lines
940 bytes
940 bytes
Does anyone know why the following shell code snippet for the csh keeps giving
me a "@: Expression syntax" error message? Code follows:
foreach record (`cat somefile`) # `somefile' contains simple ascii records. one number
# to a line.
@ ybacc = $ybacc + ((($record - $bave) * ($record - $bave))/$bcount)
end
All the above variables are simple integer variables that have been previously
calculated.
Any help would be most welcome. Thanks much.
-Benjamin Bryant
<bdbryan@eng.clemson.edu>
Keywords:
Technical Details
Message-ID:
<1992Jul28.005807.3129@hubcap.clemson.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!hubcap!luna!bdbryanShow Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!hubcap!luna!bdbryan From: bdbryan@eng.clemson.edu (Ben Bryant) Subject: simple csh question Message-ID: <1992Jul28.005807.3129@hubcap.clemson.edu> Sender: news@hubcap.clemson.edu (news) Reply-To: bdbryan@eng.clemson.edu Organization: College of Engineering, Clemson Univ. Date: Tue, 28 Jul 1992 00:58:07 GMT Lines: 20