[GnuWin32-Users] [gnuwin32 - Help] RE: shuf in gnuwin32?
Provides native Win32 open source ports and utilities
Brought to you by:
gnuwin32
From: SourceForge.net <no...@so...> - 2011-03-14 01:37:50
|
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 |