[TriLUG] How many character are allowed on the command line?

David Brain dbrain at gmail.com
Mon May 29 15:52:10 EDT 2006


> Well, if you've ever done something like
>
> echo `find . -type f` >files.txt
>
> (that's an example...... :) ; wildcarding can also do it since the UNIX
> shells expand your wildcards before executing.....)
>

Yes, but anything like that is going to fail at some point - in that
specific case:

find . -type f -exec echo {} >> files.txt \;

would probably do what you are looking for, otherwise there is always xargs.

David.



More information about the TriLUG mailing list