shell随机读取一行

使用shell随机读取文件的一行数据

shuf -n1 file_name
原文地址:https://www.cnblogs.com/zjfjava/p/9197172.html