From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "E. Richard Glazier" Newsgroups: gmane.os.tru64.managers Subject: vi math problem Date: Wed, 29 May 2002 06:00:49 +0000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: main.gmane.org 1022652024 16155 127.0.0.1 (29 May 2002 06:00:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 29 May 2002 06:00:24 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17CwVU-0004CS-00 for ; Wed, 29 May 2002 08:00:24 +0200 Original-Received: (qmail 20473 invoked by uid 5); 29 May 2002 06:01:04 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 20465 invoked from network); 29 May 2002 06:01:04 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 29 May 2002 06:01:04 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GWU00K6UZDRAP@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 29 May 2002 02:01:03 -0400 (EDT) Original-Received: from hotmail.com (f93.law4.hotmail.com [216.33.149.93]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GWU00320ZDF48@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 29 May 2002 02:00:51 -0400 (EDT) Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 28 May 2002 23:00:50 -0700 Original-Received: from 66.75.141.87 by lw4fd.law4.hotmail.msn.com with HTTP; Wed, 29 May 2002 06:00:49 +0000 (GMT) X-Originating-IP: [66.75.141.87] Original-To: tru64-unix-managers@ornl.gov X-OriginalArrivalTime: 29 May 2002 06:00:50.0838 (UTC) FILETIME=[2F6F3360:01C206D6] Xref: main.gmane.org gmane.os.tru64.managers:357 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:357 Hi mgrs. Here's a situation that should have a seemingly simple answer: I have a file with nothing but lines of numbers in it (i.e. each line in the file is a whole number). How can I sum those numbers? I tried to somehow pipe the output to bc, but couldn't quite get it. Thx. _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com