Question: I am trying to find and delete all `.swp` files in my current directory. I was using below command:

```
rm -i `find . | grep .swp$`

```

But everytime it is giving me this error:

```
rm: missing operand
Try `rm --help' for more information.

```

Anything wrong I am doing?

Answer: 
Always use the simplest tool for the job. As you want to operate on the current directory only, this command will work fine:

`rm -i *.swp`
If you want to be more restricted, you can use this:

```
find . -type f -name "*.swp" -exec rm -f {} \;

```