Piping find or ls with rm commands
Hello all,
I want to remove just a set of files from a directory, I am trying the following command:
find . -name "*jambala*" -exec rm {}\;
I get an error:
rm: missing operand
Try `rm --help' for more information.
rm: missing operand
Try `rm --help' for more information.
rm: missing operand
.....
where each file name (that I want deleted) should have been.
I am running Suse.
Why isn't the return of the find command returned into {}?
Thanks a lot
|