What's wrong with this Bourne shell script?

Randal Schwartz merlyn at iwarp.intel.com
Sun Aug 12 15:25:07 AEST 1990


In article <850 at jonlab.UUCP>, jon at 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 at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/



More information about the Comp.unix.questions mailing list