Daniels suggestion looks like it will work great. If you are needing to copy
over the network, pipe the find command to scp or rsync. I found this
command on a samba mailing list:
find {path[s]} -type d -print |rsync --perms --owner --group --times --links
--files-from=- {path[s]} {destinationhost}:
In the rsync command part, --files-from=-, the last - means read from
console input, which in this case is the piped output of the find command.
Jeremiah E. Bess
Network Ninja, Penguin Geek, Father of four
On Thu, Apr 16, 2009 at 05:42, Daniel Eggleston <[email protected]> wrote:
>
> This should do it, I think (it's a fairly simple task):
>
> for i in $(find _source_ -type d); do mkdir "_dest_/$i"; done
>
> On Thu, Apr 16, 2009 at 1:29 AM, Nelson Serafica <[email protected]>
> wrote:
> >
> > I guess there's none. Thanks BTW I'll just create a script instead since
> > I have no choice
> >
> >> write a shell script to do that.
> >>
> >
> > >
> >
>
>
>
> --
>
> Daniel
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---