Conversation

Notices

  1. @kat yes - but I'm going to test that before actually using this script. I have a directory tree full of files with every now and then some files getting the wrong ownership. So either I do the correction in once (letting chown do the recursion across *all* files), or I recurse through the directories and apply chown only where needed. I can test both and see which is more efficient. My suspicion is that because only relatively few corrections will be needed, a recursion script will be more efficient - but I'm open to surprises :)

    Thursday, 09-Jul-15 22:13:21 UTC from oracle.skilledtests.com
    1. @mk@oracle.skilledtests.com xargs and find? ?

      Thursday, 09-Jul-15 22:37:03 UTC from indy.im at 32°58'59"N 49°7'59"E
      1. @boneidol thanks for the hint - I'll look into those! I'm a bash beginner (not programming beginner), so I'm struggling with syntax, and I went through numerous examples I found online that didn't *quite* work : Learning by example is how I'm getting started here - I did come across find examples but didn't see how I could fit it in. At least by now I have a re-usable directory tree walker that actually works and that I can use for different things. Still learning to use all the Linux tools, too, but learning fast these days. :)

        Friday, 10-Jul-15 06:19:08 UTC from oracle.skilledtests.com
      2. @boneidol now studying man find and beginning to see how I might be able to use this - I think I'll start building another "framework" for this where I can later plug in an exec or xargs. # first :)

        Friday, 10-Jul-15 07:39:35 UTC from oracle.skilledtests.com