[PLUG] Trying to avoid the ls limit
Dale Snell
ddsnell at frontier.com
Sun Aug 3 22:13:38 UTC 2014
On Sun, 3 Aug 2014 13:33:43 -0700
website reader <website.reader3 at gmail.com> wrote:
> To bash gurus:
>
> I just now ran into the wall while processing files in a long
> simulation run, there are over 50,000 files in one directory and now
> the bash shell expansion wild card character * is expanding command
> line arguments and then the infamous "too many argments" message is
> given. This is particularly bad while trying the ls command: "ls
> *file* ( I apparently understand that there is a limitation in the
> readdir() command buffer size)
Randall,
I believe the xargs(1) command can help you here.
--Dale
--
"Duct tape is like the Force. It has a light side, a dark side,
and it holds the universe together." --Carl Zwanzig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20140803/885bd15e/attachment.asc>
More information about the PLUG
mailing list