|Most Shared

Terminal Pocket tech coding linux
30 Aug 2014at Richmond

Pocket app to store bookmarks, got blocked by dayjob firewall. Made a simple work-around shell script, that stores urls with tags and optional page text content. This now helps me to search with regex keys quickly across all bookmarks, opens multiple chrome tabs concurrently, all from the terminal.

Crude but really saves a lot of clicks and time. Sample interaction shown, code link below, will make it better later.

$ pocket add
page|tags ::> http://misc.flogisoft.com/bash/tip_colors_and_formatting|code linux shell color
page content? [y|n]: y
total=1 |added http://misc.flogisoft.com/bash/tip_colors_and_formatting
$ pocket add
page|tags ::> http://vijayrc.com/vectorclocks/post/regex|code regex
page content? [y|n]: y
total=2, added http://vijayrc.com/vectorclocks/post/regex
$ pocket add
page|tags ::> https://twitter.com|fun social news
page content? [y|n]: n
total=3, added https://twitter.com
$ pocket add
page|tags ::> https://news.ycombinator.com|news tech
page content? [y|n]: n
total=4, added https://news.ycombinator.com

$ pocket list
#--------------------------------------------------------#
1::::http://misc.flogisoft.com/bash/tip_colors_and_formatting
2::::http://vijayrc.com/vectorclocks/post/regex
3::::https://twitter.com
4::::https://news.ycombinator.com

$ pocket find 'color|anchor'
1::::http://misc.flogisoft.com/bash/tip_colors_and_formatting
2::::http://vijayrc.com/vectorclocks/post/regex
#--------------------------------------------------------#
select page ::> 1
opening http://misc.flogisoft.com/bash/tip_colors_and_formatting ...

    

Fetch code: my-pocket.sh

comments powered by Disqus

All content except noted photos and videos copyright © Vijayaraj Chakravarthy. All rights reserved. *Any images or videos not listed as mine are copyright to their respective owners and were used under creative common license or fair use standards. If a photo or video is your material and you do not wish it to be on the site, please email me vijayrc@outlook.com and I will remove it immediately.