home
/
code
/
khatus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-use AWK components
[khatus.git]
/
src
/
awk
/
exe
/
parse_iwconfig.awk
diff --git
a/bin/khatus_parse_iwconfig
b/src/awk/exe/parse_iwconfig.awk
similarity index 92%
rename from
bin/khatus_parse_iwconfig
rename to
src/awk/exe/parse_iwconfig.awk
index
a33b50f
..
95eedd1
100755
(executable)
--- a/
bin/khatus_parse_iwconfig
+++ b/
src/awk/exe/parse_iwconfig.awk
@@
-1,5
+1,3
@@
-#! /usr/bin/awk -f
-#
# Example iwconfig output:
# -----------------------
# $ iwconfig wlp3s0
# Example iwconfig output:
# -----------------------
# $ iwconfig wlp3s0
@@
-15,11
+13,6
@@
#
# USAGE: khatus_parse_iwconfig -v requested_interface="$wifi_interface"
#
# USAGE: khatus_parse_iwconfig -v requested_interface="$wifi_interface"
-BEGIN {
- OFS = msg_fs ? msg_fs : "|"
- Kfs = key_fs ? key_fs : ":"
-}
-
/^[a-z0-9]+ +IEEE 802\.11 +ESSID:/ {
interface = $1
split($4, essid_parts, ":")
/^[a-z0-9]+ +IEEE 802\.11 +ESSID:/ {
interface = $1
split($4, essid_parts, ":")
This page took
0.028836 seconds
and
4
git commands to generate.