Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] Quick question: how to call a script function from "find"?
On 2017-06-13 13:59, Vojtěch Zeisek wrote:
Dne úterý 13. června 2017 9:19:25 CEST, Per Jessen napsal(a):
Carlos E. R. wrote:
I usually tend towards 'xargs' because it can be parallelised, but in
this case, I would probably do this:

find /home/cer/Fusion/Videos/ -type d |\
while read d;
sudo chown cer:cer $d
chmod u+r+w+x,g+w+x,o+r-w-x,+t $d
sudo chown cer-g:cer $d

find /home/cer/Fusion/Videos/ -type d | parallel "sudo... && chmod... &&..."
This is my favorite style. :-)

I have to investigate that parallel command, but in this case I need the
commands to be sequential.

Huh, "man parallel" comes back empty. Perhaps I have to install it.

Cheers / Saludos,

Carlos E. R.
(from 42.2 x86_64 "Malachite" at Telcontar)

< Previous Next >
Follow Ups