Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一个 shell 脚本来复制一个文件夹及其所有子文件夹,但不是其中的任何文件。解决方案越便携(osx、linux、cygwin)越好。
试试这个:
rsync -av -f"+ */" -f"- *" /path/src /path/dest/