rm - Argument list too long
Kirk Strauser
kirk at strauser.com
Sat Jan 28 15:33:50 PST 2006
On Friday 27 January 2006 17:52, Paul Schmehl wrote:
> for files in *.*
> do
> rm $files
> done
Don't ever, *EVER* blindly unlink glob expansions. It's bad for you.
Instead, use something like:
find . -name 'sess.*' -delete
--
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060128/722bdfc7/attachment.bin
More information about the freebsd-questions
mailing list