Hey, this might be a really basic question, but I'm new to Unix scripting.
I'm trying to find a command to replicate a file structure from one location to another & move the actual files contained in the base directories, i.e. I have this structure -
home/temp/test/dir1/[INDENT] File1.txt
[/INDENT][INDENT] File2.txt
[/INDENT][INDENT] File3.txt
[/INDENT] /dir2/
[INDENT] File4.txt
[/INDENT][INDENT] File5.txt
[/INDENT]/home/temp/work/
/home/temp/complete/
I want to replicate the file structure under 'home/temp/test/' in 'home/temp/work/' & 'home/temp/complete/', then move the files into the new file structure, so after running the script I want to have this structure -
home/temp/test/dir1/[INDENT] /dir2/
[/INDENT]/home/temp/work/dir1/[INDENT][INDENT] File1.txt
[/INDENT][INDENT] File2.txt
File3.txt
[/INDENT][/INDENT][INDENT] /dir2/
[INDENT] File4.txt
File5.txt
[/INDENT][/INDENT]/home/temp/complete/dir1/[INDENT][INDENT] File1.txt
File2.txt
File3.txt
[/INDENT][/INDENT][INDENT] /dir2/
[/INDENT][INDENT][INDENT] File4.txt
File5.txt
[/INDENT][/INDENT]I hope that's clear, thanks for any help!