我想rsync
递归地创建一个文件夹,但只希望包含一定深度的子文件夹。
例如,我想要像这样的1,2,3或4个子文件夹的深度:
source/
├── subfolder 1
│ ├── subsubfolder
│ │ ├── subsubsubfolder
│ │ │ └── wanted with depth 4.txt
│ │ └── wanted with depth 3.txt
│ └── wanted with depth 2.txt
├── subfolder 2
│ └── wanted with depth 2.txt
└── wanted with depth 1.txt