Re: Other way to do it
> Hi, well, maybe you already know this,
> but under bash with the extglob shell
> option enabled, you can do this:
> rm !(file1 file2)
> to remove everything but file1 and
ls | egrep -v '(REGEXP1|REGEXP2|...)' | xargs rm # in most any shell
...without digging through the manpage, I'm certain `find' could also be coaxed into doing something like this as well.