[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28082: bash: /bin/rm: Argument list too long

From: Pádraig Brady
Subject: bug#28082: bash: /bin/rm: Argument list too long
Date: Sun, 13 Aug 2017 21:27:03 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

tag 28082 notabug
close 28082

On 13/08/17 14:35, Jonny Grant wrote:
> Hello
> Can this be resolved please? Seems a shame in 2017 on a machine with 
> 16GB of ram I suffer this. Each filename is around 40 bytes.
> Roughly 60,000 files
> So total strings around 2.4 MBytes. Quite a small limit.
> $rm jonny*.*
> bash: /bin/rm: Argument list too long

The standard mechanism to scale this is to use xargs,
something like:

  find . -maxdepth 1 -name 'jonny*.*' -print0 | xargs -r0 rm

In any case this is not a limitation imposed by rm.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]