home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: 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
-
- 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:
-
-
-
-