rm - Argument list too long
freebsd at celestial.com
Sat Jan 28 19:27:24 PST 2006
On Sat, Jan 28, 2006, Kirk Strauser wrote:
>On Friday 27 January 2006 17:52, Paul Schmehl wrote:
>> for files in *.*
>> rm $files
>Don't ever, *EVER* blindly unlink glob expansions. It's bad for you.
>Instead, use something like:
> find . -name 'sess.*' -delete
While that's good advice, it doesn't answer the question of argument list
The short answer is read ``man xargs''.
find . | xargs command
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Systems, Inc.
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
``A Democracy cannot exist as a permanent form of government. It can only
exist until the voters discover they can vote themselves largesse out of
the public treasury. From the moment on the majority always votes for the
candidate promising the most benefits from the public treasury with the
result that Democracy always collapses over a loose fiscal policy, always
to be followed by a Dictatorship.''
Professor Alexander Fraser Tytler. 1801
More information about the freebsd-questions