linux shell产生随机数

 

 

提取uuid并截取前8个字符:

expr substr $(cat /proc/sys/kernel/random/uuid) 1 8

 

参考:

linux shell实现随机数多种方法: http://www.cnblogs.com/chengmo/archive/2010/10/23/1858879.html

bash shell字符串操作: http://www.jb51.net/article/50435.htm

你可能感兴趣的:(linux shell产生随机数)