help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: dominik.vogt@gmx.de, Zsh Users <zsh-users@zsh.org>
Subject: Re: Using file lines as "input files"
Date: Fri, 8 Jul 2022 23:58:58 +0200	[thread overview]
Message-ID: <CAHYJk3St+ME0hZK+K86B9gA1UJxw_Fb=s86U-2wyc+NmhCAm-g@mail.gmail.com> (raw)
In-Reply-To: <Ysiacl2I2eYF+uY4@gmx.de>

On 7/8/22, Dominik Vogt <dominik.vogt@gmx.de> wrote:
> So, would it be possible to pass each line in "$INFILE" as a file
> argument to "cksum", i.e.
>   $ chksum Fline1 Fline2 Fline3 ... Fline265000

Assuming that the above command works, you should be able to do
% cksum ${(f)"$(<$INFILE)"}

Depending on your kernel this may be too long of a command line, you
can use zargs (or xargs) to work around that if needed, or if you're
on Linux you may be able to increase your stack size with ulimit -s,
% ulimit -s 132768
(my default is 8192 which is not enough for the given example)

Mikael Magnusson

  reply	other threads:[~2022-07-08 21:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-08 20:58 Dominik Vogt
2022-07-08 21:58 ` Mikael Magnusson [this message]
2022-07-08 22:04 ` Bart Schaefer
2022-07-08 23:17   ` Dominik Vogt
2022-07-09  2:21     ` Mikael Magnusson
2022-07-10  0:42       ` Dominik Vogt
2022-07-10  0:45         ` Dominik Vogt
2022-07-10  3:27         ` Bart Schaefer
2022-07-10 17:49           ` Bart Schaefer

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:

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

  git send-email \
    --in-reply-to='CAHYJk3St+ME0hZK+K86B9gA1UJxw_Fb=s86U-2wyc+NmhCAm-g@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=dominik.vogt@gmx.de \
    --cc=zsh-users@zsh.org \


* 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


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).