zsh-users
 help / color / mirror / code / Atom feed
From: Dirk Heinrichs <dhs@recommind.com>
To: <zsh-users@zsh.org>
Subject: Re: cat as a builtin command
Date: Fri, 29 Aug 2014 14:24:38 +0200	[thread overview]
Message-ID: <54007106.3010305@recommind.com> (raw)
In-Reply-To: <BLU436-SMTP2045383EF41756D3376DB3CF4DB0@phx.gbl>

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]

Am 29.08.2014 um 03:40 schrieb Izumi Natsuka:

> Hello, I'm going to write a shell function that provides a basic
> functionality(print the content of a file or stdin) of cat[0], in
> order to avoid forking too many process when I call it in a loop[1].

I try to avoid cat alltogether, as many uses belong to the "Useless use
of cat" category, like this one:

>
> $ cat archlinux-2012.09.07-dual.iso | wc -c
> 39

Could also be "wc -c archlinux-2012.09.07-dual.iso".

Results in mostly cat-free shell scripts (I like dog(s) more, anyway ;-) )

HTH...

    Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 (Ansage) 1149
*Email*: dhs@recommind.com <mailto:dhs@recommind.com>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>

[-- Attachment #2.1: Type: text/html, Size: 1717 bytes --]

[-- Attachment #2.2: Logo.gif --]
[-- Type: image/gif, Size: 1537 bytes --]

  parent reply	other threads:[~2014-08-29 12:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-29  1:40 Izumi Natsuka
2014-08-29 11:58 ` Roman Neuhauser
2014-08-29 12:24 ` Dirk Heinrichs [this message]
2014-08-29 13:20   ` Roman Neuhauser
2014-08-29 13:33     ` Dirk Heinrichs
2014-08-29 13:03 ` Peter Stephenson
2014-08-30 10:11   ` Mikael Magnusson
2014-09-01  7:53 ` Han Pingtian
2014-09-01 18:39   ` Bart Schaefer
2014-09-02  1:08     ` Han Pingtian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54007106.3010305@recommind.com \
    --to=dhs@recommind.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).