Skip to main content
1 of 2
Wildcard
  • 37.5k
  • 30
  • 149
  • 284

Using only POSIX features of find (and also of mv):

find path_A -name '*AAA*' -exec sh -c 'mv "$@" path_B' find-sh {} +

Further reading:

Wildcard
  • 37.5k
  • 30
  • 149
  • 284