How to parse wifistatus output?


I'm a bit new so please be patient with my lack of knowledge. I've got a yun running the wifistatus sketch just fine. However it outputs a lot of stuff I don't want. This includes MAC address, IP, uptime, etc.

I suppose I can modify the Linux script that is run, however what if I wanted to parse the output so that it only displays the ssid and IP address, dropping all the rest.

The code that prints everything out is:

wifiCheck.runShellCommand("/usr/bin/pretty-wifi-info.lua"); // command you want to run

// while there's any characters coming back from the
// process, print them to the serial monitor:
while (wifiCheck.available() > 0) {
char c =;