[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Is there a way to know how many arguments are not too lo
From: |
Eduardo Bustamante |
Subject: |
Re: [Help-bash] Is there a way to know how many arguments are not too long beforehand? |
Date: |
Fri, 20 Sep 2019 22:01:09 -0700 |
On Fri, Sep 20, 2019 at 9:31 PM Peng Yu <address@hidden> wrote:
(...)
> For a case like this, the number of arguments should be between 10000
> and 100000. But this is dependent on many factors.
>
> Is there a way to get a tight lower estimate of it in bash? xargs has
> something that may be useful for this purpose. But I'd like something
> native to bash.
(...)
I'd start with:
https://unix.stackexchange.com/questions/120642/what-defines-the-maximum-size-for-a-command-single-argument