I have main DIR X and inside this I have many sub directories like A,B,C,D. I have main DIR Y and inside this i have many sub directories with same name as X main directory sub directories like A,B,C,D.
Now I need to MOVE all the files from X main dir sub directories to Y main directory sub directory.
Eg:
Inside main directory X ,sub directory A has 100 files
and B has 1 file
and C has 5 files
and D has 50 files...
my cursor should be at main DIR X , from there I need to MOVE all the sub directory files to same named sub directories(A,B,C,D) which is there inside Y main directory.
how can I do this in SHELL SCRIPTING(KSH) or unix??