I have a file list like below:
app/code/community/Company/Module/Block/Adminhtml/BlockAlias.php
app/code/community/Company/Module/Block/Adminhtml/BlockAlias/Edit.php
app/code/community/Company/Module/Block/Adminhtml/BlockAlias/Grid.php
app/code/community/Company/Module/Block/Adminhtml/BlockAlias/Import.php
...
Now I want to copy these files to a new folder and automatically create directories and subfolders separated by /
.
Any suggestions or help ?
rsync
. It can read from a list of files, and it will re-create the directory structure.cp
an option for recursively copy files? Maybecp -r app/code community/Company/module/Block/Adminhtml/ /desired_directory/
could work (This would copy every file and folder in.../Adminhtml/
so if there are more files or folders than those you have indicated and you don't want to copy them, then this command won't work for you)