随机行

cat xxx |  awk 'BEGIN{srand()}{print rand()" "$0}' | sort

原文地址:https://www.cnblogs.com/zlingh/p/6086628.html