How can I copy directories from one location to another location that matches a pattern.
For example:
source = /media/src/
destination = /media/dest/
- The pattern is as
/b/w{2}_/w{2}/b. i.e all directories likeaa_bb,fg_sd,re_ya,AA_BB,aa_Bx,Ba_BBetc.