From 9935206d69756d3358efa67f63d52e7e5415e7d6 Mon Sep 17 00:00:00 2001 From: Riley Shaw Date: Tue, 20 Oct 2015 17:46:55 -0700 Subject: [PATCH] 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 ... ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f12841e..796ad42 100644 --- a/README.md +++ b/README.md @@ -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 ```