Re: [dev] [sbase] Command list

From: Markus Wichmann <nullplan_AT_gmx.net>
Date: Fri, 18 Oct 2013 22:32:10 +0200

On Fri, Oct 18, 2013 at 03:07:41PM +0300, sin wrote:
> I do not consider find(1) to be elegant in any way. I agree many ppl use it,
> including myself, I just wish we could do without this madness.
>


I can do without it! I just do

setopt extendedglob
chmod g-x **/*(#q.E^AI)~xxxx/**/*

(I hope I understood that find command correctly)

The only possible prolem would arise from the argumen list being too
long, and then I can just

zmodload zsh/files

which implements chmod inside of zsh. Or I could

print -l **/*(#q.E^AI)~xxxx/**/* | xargs chmod g-x

But of course that requires the zsh. So there's at least something all
that bloated code buys.

Ciao,
Markus
Received on Fri Oct 18 2013 - 22:32:10 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 18 2013 - 22:48:05 CEST