how to copy files without directories

Patrick Lamaizière patfbsd at davenulle.org
Mon Apr 20 11:48:02 UTC 2009


Le Mon, 20 Apr 2009 13:24:42 +0200,
"Zbigniew Szalbot" <z.szalbot at lcwords.com>:
 
> Ahh... I am sorry. Wrong subject. I want to copy directories without
> files they contain.

see mtree(8)
Something like 
$ mtree -dc -p path1 | mtree -U -p path2 
 
will copy path1 under path2


More information about the freebsd-questions mailing list