Hello,
I found this command works on Linux:
$ echo `uptime` | awk -F "load average: " '{ print $2 }'
1.60, 1.53, 1.46
but got error on Solaris:
$ echo `uptime` | awk -F "load average: " '{ print $2 }'
awk: syntax error near line 1
awk: bailing out near line 1
$ which awk
/usr/bin/awk
$ uname -a
SunOS 5.10 Generic_127127-11 sun4us sparc FJSV,GPUZC-M
$ uptime
1:33pm up 6 day(s), 14:27, 3 users, load average: 0.36, 0.48, 1.90
How do I use the awk -F on Solaris?
Thanks!