Closed bigornoo closed 3 years ago
It's there on purpose to handle SSID with white-spaces.
$ echo " SSID: Hello World" | grep ' SSID' | cut -d : -f 2- | sed 's/^[ ]*//'
Hello World
$ echo " SSID: Hello World" | grep -wi "ssid:" | awk '{print $2}'
Hello
A little bit more simple to read and shorter :)