home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3157 < prev    next >
Encoding:
Text File  |  1992-07-27  |  915 b   |  32 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!gatech!hubcap!luna!bdbryan
  3. From: bdbryan@eng.clemson.edu (Ben Bryant)
  4. Subject: simple csh question
  5. Message-ID: <1992Jul28.005807.3129@hubcap.clemson.edu>
  6. Sender: news@hubcap.clemson.edu (news)
  7. Reply-To: bdbryan@eng.clemson.edu
  8. Organization: College of Engineering, Clemson Univ.
  9. Date: Tue, 28 Jul 1992 00:58:07 GMT
  10. Lines: 20
  11.  
  12. Does anyone know why the following shell code snippet for the csh keeps giving
  13. me a "@: Expression syntax" error message? Code follows:
  14.  
  15. foreach record (`cat somefile`) # `somefile' contains simple ascii records. one number
  16.                                 # to a line.
  17.   @ ybacc = $ybacc + ((($record - $bave) * ($record - $bave))/$bcount)
  18. end
  19.  
  20. All the above variables are simple integer variables that have been previously
  21. calculated. 
  22.  
  23. Any help would be most welcome. Thanks much.
  24.  
  25. -Benjamin Bryant
  26. <bdbryan@eng.clemson.edu>
  27.  
  28. Keywords: 
  29.  
  30.  
  31.  
  32.