Copying specific subfolders with directory structure to a new folder
Posted
by
Shan
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Shan
Published on 2013-11-08T02:15:50Z
Indexed on
2013/11/08
4:19 UTC
Read the original article
Hit count: 184
bash
I have the following directory structure:
Main_Dir
|
------------------------------
Subdir1 Subdir2 Subdir3
| | |
----------- ---------- ---------
| | | | | | | | |
fo1 fo2 f03 fo1 fo2 f03 fo1 fo2 f03
I want to copy all the subdirectories (Subdir1, Subdir2, Subdir3) to a new folder. But how would I only copy fo1 and fo2 folders to the new place?
© Ask Ubuntu or respective owner