Date: 25 Dec 2002 12:00:38 -0600 From: Kirk Strauser <kirk@strauser.com> To: freebsd-questions@freebsd.org Subject: Re: Argument list too long: limitation in grep? bash? FreeBSD? Message-ID: <87y96ef06x.fsf@pooh.honeypot.net> In-Reply-To: <F25p7Jl3Oh3Quct2Dsk00019655@hotmail.com> References: <F25p7Jl3Oh3Quct2Dsk00019655@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 2002-12-25T14:02:07Z, "Bill Moran" <bill_moran2@hotmail.com> writes: > Ahhh ... so (making sure to understand this information so I can use it > again later) the quotes tell find to expand the pattern, without quotes > the shell tries to do it and results in the mentioned error. That's exactly correct. Your original command was asking Bash to expand the command-line to: grep '__FILE__' file1.html file2.html file3.html ... file3000.html and that's just too many arguments to be passing around. By quoting '*.html', `find' is doing the pattern-matching internally, and it can do this without an upper bound on the number of files it can match. -- Kirk Strauser In Googlis non est, ergo non est. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87y96ef06x.fsf>