【Shell】将txt中内容乱序May 16, 2017#Shell58AI-generated summaryThis is a Shell command that shuffles the content of a text file called "in.txt" and saves the shuffled content in a new file called "out.txt". The command uses the "cat", "awk", "sort", and "cut" commands to achieve this. shuffle 训练集目录用 Copycat in.txt | awk 'BEGIN{srand()}{print rand()"\t"$0}' | sort -k1,1 -n | cut -f2- > out.txt ---