Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.3: Display Specific System Profiler information' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Display Specific System Profiler information
Authored by: ajoakland on Oct 27, '03 05:08:25PM
Okay, here we go again:

system_profiler SPAirPortDataType|awk -F": " '/Current Wireless Network/{print $2}'
It eliminates the grep. the -F specifies the field seperator which is a colon followed by a space. The space is added so the space after the colon does not become part of the second field. This splits the line with a colon-space that we care about into two fields, regardless of the other spaces.

The /Current Wireless network/ searches for the line match, just like the grep.

Always looking for a way to do it in less commands. ;)

[ Reply to This | # ]

10.3: Display Specific System Profiler information
Authored by: jsnell on Feb 02, '04 01:17:22PM
I've posted an AppleScript to set iChat status based on SSID at Macworld. Thanks to the people in this thread for saving me from going to Internet Connect to discover the SSID.

Jason Snell, Editor, Macworld

[ Reply to This | # ]