阅读背景:

如何在Linux shell中找到随机文件

来源:互联网 

How to pick 100 files randomly from a directory by Linux shell. I read other topic, 'shuf' command can do this: find . -type f | shuf -n100, but our environments do not have 'shuf' cmd. Is there other method to do this? use bash, awk, sed or sth else?How to pick 100 files randomly from a directory




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: