dmtrygrey / awk_iw_grab

Awk script which is showing how to grab data from iw scan
0 stars 4 forks source link

INTRO

This small awk script helps to parse iw tool output. This is just an example, you can modify it as you like.

iw tool output is not stable and format might change in the future.

Requirenments

Might work with some older versions too.

Usage

# iw dev wlan0 scan | gawk -f parse.awk

Output with test router:

A5FEF2C499BB:test-ssid2:OPEN:no:9:43:0d00h00m
039EFACA9A8B:test-ssid2:WPA1WPA2:no:9:33:0d00h00m
038BF3C1988B:test-ssid2:WPA2:no:9:35:0d00h00m
028EF3C2997B:test-ssid2:WPA1WPA2:no:9:35:0d00h03m

Licence

MIT