Deutsch English Français Italiano |
<uusur7$2hm6p$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.unix.shell,comp.unix.programmer,comp.lang.misc Subject: Re: Command Languages Versus Programming Languages Date: Sun, 7 Apr 2024 02:02:15 -0000 (UTC) Organization: A noiseless patient Spider Lines: 16 Message-ID: <uusur7$2hm6p$1@dont-email.me> References: <uu54la$3su5b$6@dont-email.me> <87edbtz43p.fsf@tudado.org> <0d2cnVzOmbD6f4z7nZ2dnZfqnPudnZ2d@brightview.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 07 Apr 2024 02:02:15 +0200 (CEST) Injection-Info: dont-email.me; posting-host="edc206e7c881f15813a37489a3e0be36"; logging-data="2676953"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nzi7jyDCngRfkhXAjvVl7" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:PHcs9A/3nlGLUYeSlaA8FyJ36YE= Bytes: 1712 On Sun, 07 Apr 2024 00:01:43 +0000, Javier wrote: > The downside is the loss of performance because of disk access for > trivial things like 'nfiles=$(ls | wc -l)'. Well, you could save one process creation by writing “nfiles=$(echo * | wc -l)” instead. But that would still not be strictly correct. > I suspect disk access times where > one of the reasons for the development of perl in the early 90s. Shells were somewhat less powerful in those days. I would describe the genesis of Perl as “awk on steroids”. Its big party trick was regular expressions. And I guess combining that with more sophisticated data- structuring capabilities.