[sf-perl] randomize particular lines

Bart Alberti bart at solozone.com
Mon Mar 6 15:22:19 PST 2006

here is a simple question:
How do I randomize (completely scramble) every third ("n") line of a 
text file (and not the whole file)?
Alternative: export every 3rd line, scramble these and merge the result?

Simple stuff, but for an ex-user of awk... etc (:-)

Bart Alberti

More information about the SanFrancisco-pm mailing list