I get the error find: missing argument to-exec'` when I attempt to run the command
find . -maxdepth 1 \( -iname \*.png -o -iname \*.jpg \) -exec echo {} \;
The reason I am using echo is because I want to make sure it is returning the results I expect before I replace it with either rm or mv. What am I doing wrong?