sudo awk ‘BEGIN{ 100000*srand();}{ printf “%s %s\n”, rand(), 0}' train.txt |sort -k1n | awk '{gsub(1FS,""); print $0}’ | tee train1.txt
linux下打乱txt文件的行序
最新推荐文章于 2021-11-16 08:35:43 发布
sudo awk ‘BEGIN{ 100000*srand();}{ printf “%s %s\n”, rand(), 0}' train.txt |sort -k1n | awk '{gsub(1FS,""); print $0}’ | tee train1.txt