What's wrong with this command?
Steven M. Klass
plug-discuss@lists.PLUG.phoenix.az.us
Tue, 26 Jun 2001 15:09:12 -0700
On Tuesday 26 June 2001 12:38, the famous Bill Warner wrote:
> I was doing something almost exaclty the same as this.
>
> I was duplicating directory structures and hardlinking files for use
> with nfs root filesystems.
>
> these were the commands I came up with:
> cd /$backupdir
> find ../$sourcedir -type d | cut -c 13-256 |xargs mkdir
You could also do this
cd $sourcedir
find . -type d | cut -c3- | sed 's/^/\/tmp\/projects\//g' | xargs mkdir
I'm getting better with regex :)
I know understand the use of xargs in this example but it still doesn't help
me.. :)
Later
--
Steven M. Klass
Physical Design Engineering Manager
Andigilog Inc.
7404 W. Detroit Street, Suite 100
Chandler, AZ 85226
Ph: 480-940-6200 ext. 18
Fax: 480-940-4255
sklass@andigilog.com
http://www.andigilog.com