close
Warning:
Can't synchronize with repository "(default)" (/common/SVN/wimax does not appear to be a Subversion repository.). Look in the Trac log for more information.
File rss.awk, 277 bytes
(added by seskar, 13 years ago) |
RSSI extraction AWK script
|
Line | |
---|
1 | #!/usr/bin/awk
|
---|
2 |
|
---|
3 | BEGIN {
|
---|
4 | FS="|";
|
---|
5 | OFS=",";
|
---|
6 | print "latitude, longitude, rssi, rssi_color";
|
---|
7 | }
|
---|
8 | {
|
---|
9 | if ($11==-2.0) next;
|
---|
10 | if ($7>-90) a="green";
|
---|
11 | if ($7>-80) a="yellow";
|
---|
12 | if ($7>-70) a="orange";
|
---|
13 | if ($7>-60) a="red";
|
---|
14 | print $11,$12,$7,a;
|
---|
15 | }
|
---|
Download in other formats: