Conversation
Notices
-
@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 :)
-
@mk@oracle.skilledtests.com xargs and find? ?
-
@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. :)
-
-