Jul 14, 2003 #1 goop5 Vendor Jul 14, 2003 1 BE Does someone have an AWK-script to randomize the order of lines in a file?
Jul 14, 2003 #2 vgersh99 Programmer Jul 27, 2000 2,146 US something like that [courtesy of comp.lang.awk]: nawk 'BEGIN{srand()}{print rand(), $0}' myFile.txt | sort | cut -d' ' -f2- vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
something like that [courtesy of comp.lang.awk]: nawk 'BEGIN{srand()}{print rand(), $0}' myFile.txt | sort | cut -d' ' -f2- vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+