How to specify the target directory with mv? I'm trying to move some files with GNU find on the command line, as in this answer:
gfind path_A -name '*AAA*' -exec mv -t path_B {} +

(added a 'g' prefix to find to use the Homebrew version of find.)
Problem: MacOS' version of mv doesn't have the -t switch and without it the command doesn't work. So, how can I move files with find on MacOS?
gfind path_A -name '*AAA*' -exec mv {} path_B/ \;

should work, you can even use find as long as you don‘t need any special functionality only gfind provides. You can also basically use any other answer in the Q&amp;A you link to in the question :-)