home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 15065 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  896 b 

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!biosci!nntp.barrnet.net!nntp.ampex.com!jag
  2. From: jag@ampex.com (Rayaz Jagani)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: How to total file sizes for selected files?
  5. Message-ID: <C038IH.zs@ampex.com>
  6. Date: 30 Dec 92 19:51:52 GMT
  7. References: <1992Dec29.144421.23845@news.eng.convex.com> <1992Dec30.083126.26511@ptsfa.PacBell.COM> <1992Dec30.184600.720@news.DKRZ-Hamburg.DE>
  8. Sender: jag@dst.ampex.com (Rayaz Jagani)
  9. Organization: Ampex Corporation, Redwood City CA
  10. Lines: 8
  11. Nntp-Posting-Host: dst-s4-21
  12.  
  13. In article <1992Dec30.184600.720@news.DKRZ-Hamburg.DE> m212022@regen.DKRZ-Hamburg.DE (Wolfgang Welke) writes:
  14. >In article <1992Dec30.083126.26511@ptsfa.PacBell.COM> dmturne@PacBell.COM (Dave Turner) writes:
  15.  
  16. ... several version presented.
  17.  
  18. I use the following script
  19.  
  20. ls -al $* |awk '{i = i + $4;j++} END {print j " files use " i " bytes"}'
  21.