shuf -zer -n 8 {1..9} {A..Z} {a..z} | tr -d '\0'
shuf -n 1 -e /path/to/directory/*
shuf /path/to/file
shuf -n 5 /path/to/file
shuf -i 1-100 | head -n 10
这些是一些shuf命令的高级技巧,可以帮助你更有效地利用这个命令进行随机操作。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:linux shuf处理大文件技巧