From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Stitt To: 9fans@cse.psu.edu Subject: Re: [9fans] dumb question In-Reply-To: <20020626084525.2B9F019981@mail.cse.psu.edu> Message-ID: References: <20020626084525.2B9F019981@mail.cse.psu.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Wed, 26 Jun 2002 10:36:02 -0700 Topicbox-Message-UUID: b9ebb41e-eaca-11e9-9e20-41e7f4b1d025 thank you this is very helpful. On Wed, 26 Jun 2002 arisawa@ar.aichi-u.ac.jp wrote: > Hello, > > >ok so im totally stumped on this: how do i copy a directory? > >cp can copy files only, but has no nifty recursive option, > >what do i do? thanks > > Andrew > > look at http://plan9.aichi-u.ac.jp/netlib/cmd/cpdir/ > > The following is a part of README file. > > Kenji Arisawa > E-mail: arisawa@aichi-u.ac.jp > > > Usage: cpdir [-vugRm] [-l list] source destination [path ...] > Options and arguments: > -v: verbose > -u: copy owner info > -g: copy group info > -R: remove redundant files and directories > -m: merge > -l list: > path list to be processed. path list must be a path > per line. > source: > source dir from which copy is made. > destination: > destination dir in which copy is made. > path ... : pathes in source to be processed. > > Function: > `cpdir' makes effort to make a copy of source/path > in destination/path. > `cpdir' copies only those files that are out of date. > `cpdir' tries to preserve the following info.: > - contents (judged from modification time) > - modification time > - permissions > - group (under -g option) > - owner if possible. (under -u option) > and under -R option, `cpdir' removes files and directories > in destination/path > that are non-existent in source/path. > >