On 20 March 2015 at 19:06, Kalin KOZHUHAROV <[email protected]> wrote:
> I thought that I missed something here, so I downloaded the catrand
> source and had a look (didn't bother with publib).
> But isn't that all achieved with `sort -R`?
Quick look - yes. No idea when they introduced this flag :)
Therefore one can live quite well without catrand. It's something I
wrote long ago.
However 'sort -R' is GNU-only which is fine for my Linux box.
> While I agree somewhat of trying to stay "independent" of things like
> bashisms, I would never choose to depend on a piece of software that I
> wrote, that needs to be compiled and further depends on non-standard
> library... what is the chance of that being on random system X
> (assuming /me != Linus_Torvalds||Randal_Swartz, LoL)
> Or do you have this randcat installed everywhere you login?
No, of course not. I generally avoid bashisms. In this case of course
it would not have made any difference.
> A quick and dirty one-liner, with bashism, disregarding
> stretching/cropping, for my 2 desktops (change head -n part):
>
> i=0; for D in $(find ~GNUstep/Library/WindowMaker/Backgrounds/ -type f
> |sort -R |head -n2); do wmsetbg -w ${i} "${D}"; i=$(($i+1)); done
>
> (if one wants to use symlinks, -type l instead)
Yep, that, too, would do the trick :)
--
---------- [email protected] --/-- [email protected] ----
------------- / http://herbert.the-little-red-haired-girl.org / -------------
--
To unsubscribe, send mail to [email protected].