Wednesday, December 19, 2012

[Level 2] Scan wifi channel in Ubuntu.

#!/bin/bash
iwlist wlan0 scanning | grep Channel: | grep -v grep | cut -d: -f2 | sort

Wish this helps.

regards,
Stanley Huang