Date: Thu, 7 Mar 2013 17:15:46 +0100 From: Lars Engels <lars.engels@0x20.net> To: Vladislav Prodan <universite@ukr.net> Cc: freebsd-fs@freebsd.org Subject: Re: Argument list too long Message-ID: <20130307161546.GV47829@e-new.0x20.net> In-Reply-To: <82112.1362671436.13776555968178880512@ffe17.ukr.net> References: <82112.1362671436.13776555968178880512@ffe17.ukr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--finhkSr2yyrWw3ow Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 07, 2013 at 05:50:36PM +0200, Vladislav Prodan wrote: > Why 12K small files from one directory to cause problems? >=20 > # ll | wc -l > 11467 >=20 > # grep X-PHP-Script * | more > /sbin/grep: Argument list too long. >=20 > # egrep X-PHP-Script *.ua | more > /usr/sbin/egrep: Argument list too long. >=20 > # cat *.ua | grep X-PHP-Script | more > /sbin/cat: Argument list too long. >=20 >=20 >=20 Your shell can't process that many arguments. Use this: grep -R "X-PHP-Script" . or if you don't want to descent into subdirectories: find . -type -f -name '*.ua' -maxdepth 1 -exec grep "X-PHP-Script" {} \+ --finhkSr2yyrWw3ow Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlE4vTIACgkQKc512sD3afjnvACeLHvYfj+ScPgn5mDUUpU9UcBi h2EAn2HctdmTK4zvz2QRS9zEAD2MaMoB =Omb/ -----END PGP SIGNATURE----- --finhkSr2yyrWw3ow--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130307161546.GV47829>