Ubuntu Pastebin

Paste from lordievader at Thu, 16 Jul 2015 11:31:47 +0000

Download as text
1
2
3
4
5
6
7
#!/bin/bash
INTERFACE="$1"
ESSID="$2"
data=($(iw $INTERFACE scan|grep -B8 $ESSID|sed -e 's/[[:space:]]\+/_/g'))
for line in ${data[@]}; do
echo $line|sed -e 's/^_//g' -e 's/_/\ /g'
done;
Download as text