找到个对文件内容随机排序的办法 awk 'BEGIN {srand();} {print rand() * 1000000, $0}' file | sort | awk '{print $2}' > file.random