Friday, December 16, 2011

I finally got tired of all the .swp files in my vim directories. To delete them in one pass you can run
rm -rf `find -type f -name *.swp`
note: those aren't single quotes, they're grave accent quotes (the thingy under the ~)

2 comments:

  1. I think find -type f -name *.swp -delete, works too.

    ReplyDelete
  2. Yeah yours is better. On a mac its: find . -type f -name "*.swp" -delete

    ReplyDelete