在SunOS上使用awk

Solaris 默认的awk是原汁原味的老awk没有rand.可以使用nawk代替

nawk 'BEGIN{srand();k=rand();print k;}'

或者使用/usr/xpg4/bin/awk



posted on 2012-02-15 13:47  perlman  阅读(755)  评论(0编辑  收藏  举报

导航