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


Click here to return to the 'Display current network location via the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display current network location via the Terminal
Authored by: VF on Dec 16, '04 01:31:36AM
Here is another way to do it (might be more human-readable...).

#!/bin/sh
scselect 2>&1 | grep '^[ ]*\*' | cut -d'(' -f2 | cut -d')' -f1
P.s.: Of course, also preserves SPACEs in your location-name.

---
VF

[ Reply to This | # ]