Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Would this (o) be very difficult to add?



On Sep 23,  6:12pm, DervishD wrote:
}
}     Sometimes we want to do globbing and sort the output randomly:
} when generating playlists, when generating image slideshows, etc...

Try this:

	print -lP *(e:'REPLY=%0(l..$RANDOM)"$REPLY"':)


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author