diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-07 19:57:05 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-11 18:59:43 -0500 |
commit | 07ec79433657e754965dd2eb7a324512d46a72ee (patch) | |
tree | bd95000d24a373a9c1b9a6a7186d2a7b98cd3d14 /.local/bin | |
parent | ddb7692a2f93dca1ebf39a8ea7a710363aea516a (diff) |
rbar: be more compact
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/iwdata | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/iwdata b/.local/bin/iwdata new file mode 100755 index 0000000..a631d6d --- /dev/null +++ b/.local/bin/iwdata @@ -0,0 +1,8 @@ +#!/bin/sh + +iwconfig "$1" | +sed -r 's/ {2,}/\n/g' | +sed -e '/^\s*$/d' -e 's/:\s*/=/' \ + -e '1s/^/Interface=/' \ + -e '2s/^/MAC Protocol=/' \ + -e 's/^ESSID="\(.*\)"$/ESSID=\1/' |