hans

hans

【Shell】将txt中内容乱序


shuffle 训练集目录用

cat in.txt | awk 'BEGIN{srand()}{print rand()"\t"$0}' | sort -k1,1 -n | cut -f2- > out.txt
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.