[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ProgSoc] rm'ing too hard
On Thu, 2006-05-04 at 12:09 +1000, Christian Kent wrote:
> Running rm ./dir/* causes an error, 'too many arguments'. Bash wildcard
> error, I believe.
Erm, why not
rm -rf dir
?
> And rmdir, with --ignore, doesn't actually override it.
>
> I've successfully dumped a directory listing though. So is the best thing
> to do, to build some kind of script that runs through that? 'ls' took
> forever to build that text file :)
If you really don't want to remove everything, and can't easily move the
"want to keep" files out of the way, then
find dir -type f -a -SOME_MORE_CONSTRAINTS_HERE -print0 | xargs -0 rm
- Raz
-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@xxxxxxxxxxxxxxxxxxx
If you are having trouble, ask owner-progsoc@xxxxxxxxxxxxxxxxxx for help.