How can I move subfolders with a pattern to the new location?
Example list of sources:
/data/aaa/_old/
/data/bbb/_old/
The destinations should be:
/archive/aaa/_old/
/archive/bbb/_old/
Is there a way to do this with a regular expression and move
?
Something like:
mv /data/(.*)/_old/(.*) /archive/$1/_old/$2