Solaris awk: syntax error near line 1 awk: bailing out near line 1

Describe

awk: syntax error near line 1
awk: bailing out near line 1

Cause

SunOS默认awk没有rand,与Linux awk有所不同

Solution

可以使用如下两个代替:
nawk
/usr/xpg4/bin/awk

 

你可能感兴趣的:(Shell,Err)