On Wed, Jan 23, 2002 at 10:56:42AM -0700, Tyler Regas wrote:
...
>Yes, but is that a limitation of the shell or is it a limitation of ls? The
>DOS limitation resides in the command environment itself. It might even be a
>sort of throttle for ls that limits incoming args to prevent swamping the
>system. That lline of yours would certainly do it :)
Actually I think it's a kernel limit on the maximum size of
command line and environment space. SCO OpenServer used to be
limited to about 5000 characters, but made this a configurable
parameter several years ago.
See the man pages for ``xargs'' for information on ways to deal
with huge numbers of arguments. As an example to find all the
files containing some pattern this will work on most *ix boxes:
find . -type f -print | xargs grep -l pattern
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
``I don't make jokes, I just watch the Government and report the facts...''
Will Rogers
_______________________________________________
Linux-users mailing list - http://linux.nf/mailman/listinfo/linux-users
Subscribe/Unsubscribe info, Archives,and Digests are located at the above URL.