Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] Quick question: how to call a script function from "find"?
On 06/13/2017 01:41 PM, Carlos E. R. wrote:
On 2017-06-13 09:03, Bernhard Voelker wrote:
find /home/cer/Fusion/Videos/ -type d -exec \
sh -c "
sudo chown cer:cer '{}' &&
chmod u+r+w+x,g+w+x,o+r-w-x,+t '{}' &&
sudo chown cer-g:cer '{}'
" \;
This seems nice. I suppose it doesn't mater that the directories found
have spaces?

No, as long as you put quotes around '{}'. ;-)

Have a nice day,
Berny


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >