Read and respond to this message at: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4396225 By: mz2ptc0
[quote]Hi guys, I could not find shuf in GnuWin32, so I assume it hasn't been not ported to win (yet?) Do you have any tip to achieve the same functionality? What I actually need is to list all files in a folder (find c:\windows) and provide each item to an executable in random order. I was planning something like: find c:\windows | shuf > list.txt for /f %%G in (list.txt) do ( dosomething with %%G )[/quote] You may need to write a simple program yourself using a pseudo-random number generator or even the `noise.sys' hardware prng driver. The source code of shuf itself may give you some hints on how to do this, otherwise look at standard programming references. _____________________________________________________________________________________ You are receiving this email because you elected to monitor this topic or entire forum. To stop monitoring this topic visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4396225/unmonitor To stop monitoring this forum visit: https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users