Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!udel!princeton!jonlab!jon From: jon@jonlab.UUCP (Jon H. LaBadie) Newsgroups: comp.unix.questions Subject: Re: What's wrong with this Bourne shell script? Summary: back to basics Message-ID: <850@jonlab.UUCP> Date: 11 Aug 90 07:36:45 GMT References: <1990Aug3.193231.3166@silma.com> <1990Aug6.172225.20319@iwarp.intel.com> Organization: 4455 Province Line Rd., Princeton, NJ 08540 Lines: 23 In article <1990Aug6.172225.20319@iwarp.intel.com>, merlyn@iwarp.intel.com (Randal Schwartz) writes: > In article <1990Aug3.193231.3166@silma.com>, aab@silma (Andy Burgess) writes: > | While you're at it, is there a better way to get the total bytes > | of the files in a directory? > > PERL SCRIPT DELETED A script of mine called "addcol" was printed in UNIX World's monthly column Wizard's Grabbag and would do the same thing without perl; ls -ld | addcol -4 However, have we forgotten our roots? I'm surprised in this thread that no one has mentioned: TOTAL=`cat * | wc -c` Jon -- Jon LaBadie {att, princeton, bcr}!jonlab!jon {att, attmail, bcr}!auxnj!jon