2012/2/7 Ingo Hofmann <ingo.hofmann at dont-panic.org>: > What helps me sometimes is wrapping it up: > > for i in *; do rm $i; done Won't that just expand the * and result in the same problem? It seems like you've just moved the problem from the rm statement to the for statement.