I have just had better luck getting things to do what i want useing xargs. I have used both in the past but have found that the xargs way seems to be the way that outputs what I expect it to do, while sometimes the -exec will not. I am not sure why. Bill Warner On 26 Jun 2001 14:45:09 -0700, Steven M. Klass wrote: > On Tuesday 26 June 2001 12:38, the famous Bill Warner wrote: > > Terrific!!! But I have some questions-> GO FIGURE! :) > > > 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 > > why did you not go directly to the -exec mkdir -> even with the cut > operation. I guess I'm curious why people say I should be doing it the xargs > way? > > > cd /$sourcedir > > find . -type f -exec ln {} /$root/$destination/{} \; > > But again I would think that I could substitute my -exec and it would work > > It doesn't and I can't figure out why.. Hmm. > > > > > > the cut used in the first one was to cut off the base direcitory because > > find was returning more than what i wanted. you may need to adjust the > > size of the cut to fit your situations. I am only now starting to > > revisit this script for use again so YMMV. > > > > > -- > > 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 > ________________________________________________ > See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail. > > PLUG-discuss mailing list - PLUG-discuss@lists.PLUG.phoenix.az.us > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss -- Bill Warner Unix/Linux Admin. Direct Alliance Corporation Confidential