Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!decwrl!ucbvax!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.unix.questions Subject: Re: What's wrong with this Bourne shell script? Message-ID: <1990Aug12.052507.24901@iwarp.intel.com> Date: 12 Aug 90 05:25:07 GMT References: <1990Aug3.193231.3166@silma.com> <1990Aug6.172225.20319@iwarp.intel.com> <850@jonlab.UUCP> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 15 In-Reply-To: jon@jonlab.UUCP (Jon H. LaBadie) In article <850@jonlab.UUCP>, jon@jonlab (Jon H. LaBadie) writes: | However, have we forgotten our roots? I'm surprised in this thread | that no one has mentioned: | | TOTAL=`cat * | wc -c` Because it (a) skips files that start with dot, and (b) is *horribly* inefficient. Don't try this at home, kiddies! Just another UNIX hacker (and look, I didn't mention Perl here, either), -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/