Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save taroyanaka/7e832d1f43404500635c31436b6afa1d to your computer and use it in GitHub Desktop.
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
#! /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