Meiy P. answered 03/11/20
Effective Math, Physics, Excel & vba Macros Tutor
For rm - you can use find and delete.
find /source/directory -mindepth 1 -maxdepth 1 -name "*.pdf" -delete
For mv and cp you can use find and exec
find /source/directory -mindepth 1 -maxdepth 1 -name '*.pdf' -exec mv {} /target/directory \;
Hope this helps.