Created
July 21, 2018 13:16
-
-
Save taroyanaka/7e832d1f43404500635c31436b6afa1d to your computer and use it in GitHub Desktop.
EXAMPLE: chmod a+x ./search_any_url_from_mac_chrome_bookmarks.sh; ./search_any_url_from_mac_chrome_bookmarks.sh www.foobar.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# grep jp.xvideos.com /Users/$(whoami)/Library/Application\ Support/Google/Chrome/Default/Bookmarks.bak | | |
grep "$1" /Users/$(whoami)/Library/Application\ Support/Google/Chrome/Default/Bookmarks.bak | | |
grep url | | |
while read LINE | |
do | |
echo "${LINE#\"url\"\: }" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment