I try to run (unix-shell, win7):
find . -maxdepth 1 -name "*.jpg" -size -50k -delete
and get the error:
find: invalid predicate '-delete'
You may also find the xargs is helpful, not only in find & delete operations, but, in others where you may want to process text after you run a command. In this case,
Always make sure you check your work with an "echo" before xargs, first (so you can see what the commands look like before you run it). Which would look like:
The version of
An possible alternative is-: