Hi Folks,
I'm running this tshark scan + filter: sudo tshark -I -i en1 -T fields -e wlan.sa_resolved -e wlan_mgt.ssid -e radiotap.dbm_antsignal type mgt subtype probe-req
and need to prepend each line with a '/', to get an output like this:
/Apple_9d:ex:xx eduroam -90
I've tried sed 's:^:/:'
and also | awk '{print " / " $0}'
but both of those stop the output of the scan from displaying (the packet counter appears instead). The only way I've got it to almost work is with sudo tshark -I -i en1 -T fields -e wlan.sa_resolved -e wlan_mgt.ssid -e radiotap.dbm_antsignal type mgt subtype probe-req > >(sed 's:^:/:')
, but then you only see the output when you stop the command. Very furstrating.
I believe it's something to do with the probe requesttype
filter, as when I remove that both sed & awk work, but then I'm getting lots of frames etc that I don't need. Any thoughts would be greatly appreciated!
asked 13 Mar '15, 16:00

youcloudsofddom
16●5●5●9
accept rate: 0%
That works perfectly, thank you!