From dc4c259f2eae1858f9b56492baa0f2f19b253027 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 11 Nov 2015 14:16:31 +0530 Subject: [PATCH] Easy to find examples. --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 2ef2e67..da17016 100644 --- a/README.md +++ b/README.md @@ -90,42 +90,42 @@ Keys 1-N open Nth search result in browser. Enter exits markit. # Examples -1. Add a new bookmark with tags `linux news` and `open source`: +1. Add a new bookmark with tags `linux news` and `open source`:
$ markit -a http://tuxdiary.com linux news, open source
 Added at index 15012014
The assigned automatic index 15012014 is unique, one greater than highest index already in use in database. -2. Add a bookmark, fetch page title information from web: +2. Add a bookmark, fetch page title information from web:
$ markit -a -w http://tuxdiary.com linux news, open source
 Title: [TuxDiary | Linux, open source and a pinch of leisure.]
 Added at index 15012014
-3. Update existing bookmark at index 15012014 with a new tag: +3. Update existing bookmark at index 15012014 with a new tag:
$ markit -u 15012014 -w http://tuxdiary.com linux news, open source, magazine
 Title: [TuxDiary | Linux, open source and a pinch of leisure.]
 Updated
-4. Delete bookmark at index 15012014: +4. Delete bookmark at index 15012014:
$ markit -d 15012014
-5. Delete all bookmarks: +5. Delete all bookmarks:
$ markit -D
-6. Insert a bookmark at deleted index 15012014 (fails if index or URL exists in database): +6. Insert a bookmark at index 15012014 (fails if index or URL exists in database):
$ markit -i 15012014 -w http://tuxdiary.com/about linux news, open source
 Title: [A journey with WordPress | TuxDiary]
 Added at index 15012014
This option is useful in filling deleted indices from database manually. -7. Show info on bookmark at index 15012014: +7. Show info on bookmark at index 15012014:
$ markit -p 15012014
-8. Show all bookmarks with real index from database: +8. Show all bookmarks with real index from database:
$ markit -P
-9. Open URL at index 15012014 in browser: +9. Open URL at index 15012014 in browser:
$ markit -o 15012014
-10. Search bookmarks: +10. Search bookmarks:
$ markit -s kernel debugging
-11. Show debug info: +11. Show debug info:
$ markit -z
-12. Show help: +12. Show help:
$ markit
-13. Check manpage: +13. Check manpage:
$ man markit
-14. MarkIt doesn't have any import feature of its own. To import URLs in bulk, create a script with URLs and tags like the following (check TIP below): +14. MarkIt doesn't have any import feature of its own. To import URLs in bulk, create a script with URLs and tags like the following (check TIP below):
#!/bin/bash
 markit -aw https://wireless.wiki.kernel.org/ networking, device drivers
 markit -aw https://courses.engr.illinois.edu/ece390/books/artofasm/ArtofAsm.html assembly
@@ -134,7 +134,7 @@ markit -aw http://www.mikroe.com/chapters/view/65/ electronics
 markit -aw "http://msdn.microsoft.com/en-us/library/bb470206(v=vs.85).aspx" file systems
 markit -aw http://www.ibm.com/developerworks/linux/library/l-linuxboot/index.html boot process
Make the script executbale and run to batch add bookmarks. -15. To update all URLs along with your tags, first get the unformatted selective output with URL and tags: +15. To update all URLs along with your tags, first get the unformatted selective output with URL and tags:
$ markit -P -x 2 | tee myurls
Add `markit -wu ` in front of all the lines (check TIP below). Should look like:
#!/bin/bash