【Shell】将txt中内容乱序2017年5月16日#Shell80 shuffle 训练集目录用 Copycat in.txt | awk 'BEGIN{srand()}{print rand()"\t"$0}' | sort -k1,1 -n | cut -f2- > out.txt ---