user912475
user912475

Reputation:

a shell script to copy a folder and all it's subfolders, but noit it's files

I need a shell script to copy a folder and all it's subfolders, but not any of it's files. The more portable (osx, linux, cygwin) the solution is, the better.

Upvotes: 1

Views: 203

Answers (1)

Kent
Kent

Reputation: 195039

give this a try:

rsync -av -f"+ */" -f"- *" /path/src /path/dest/

Upvotes: 5

Related Questions