bug-coreutils
[Top][All Lists]
Advanced

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

Re: /bin/cat : argument list is too long


From: Eric Blake
Subject: Re: /bin/cat : argument list is too long
Date: Wed, 21 Nov 2007 06:06:29 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Manickam Muthuraman on 11/21/2007 4:47 AM:
> address@hidden:~/HHpred/scop_hmm> cat *.hhm > scop70_1.72.hhm
> bash: /bin/cat: Argument list too long

This is a FAQ:
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Argument-list-too-long

It is not a bug in cat, but a limitation of your kernel.  Perhaps you want
to use the following workaround:

{ echo *.hhm | xargs cat; } > scop70_1.72.hhm.tmp
mv scop70_1.72.hhm.tmp scop70_1.72.hhm

Note that I broke the command into two steps, so that I guarantee that I'm
not trying to cat the contents of scop70_1.72.hhm into itself.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHRC1U84KuGfSFAYARAtrWAJ9ipChThnhrpfR1BgUvAOUA4byW9ACePr3I
bd6NZLLIqwujEtftxQKuQLM=
=Keph
-----END PGP SIGNATURE-----




reply via email to

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