Login
Forgot Password
Wiki Preferences
Wiki*
Getting Started
FAQ
Docs
Hardware
Software
Tutorials
Context Navigation
Back to Internal/WiMax
Internal/WiMax
: rssi.awk
File rssi.awk,
262 bytes
(added by
nilanjan
,
13 years ago
)
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:
Original Format