Simplify "Show Wi-Fi Network Passwords" to use built-in flags

Rather than `grep`ing for `password:`, we can simply use the `-w` flag.

```bash
> security find-generic-password -h
    ...
    -w  Display only the password on stdout
    ...
```
This commit is contained in:
Riley Shaw 2015-10-20 17:46:55 -07:00 committed by Riley Shaw
parent b30c562b7e
commit 9935206d69

View File

@ -713,7 +713,7 @@ defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.prefere
#### Show Wi-Fi Network Passwords
Exchange SSID with the SSID of the access point you wish to query the password from.
```bash
security find-generic-password -ga "SSID" | grep "password:"
security find-generic-password -a "SSID" -gw
```