Skip to content

Instantly share code, notes, and snippets.

@sach1t
Created December 4, 2016 17:51
Show Gist options
  • Save sach1t/cbf6bd73eace80b09a75afeaaa6c8690 to your computer and use it in GitHub Desktop.
Save sach1t/cbf6bd73eace80b09a75afeaaa6c8690 to your computer and use it in GitHub Desktop.

Revisions

  1. sach1t created this gist Dec 4, 2016.
    17 changes: 17 additions & 0 deletions cbdd.awk
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    # 1. export bookmarks
    # 2. awk -f cbdd.awk bookmarks_12_4_16.html > uniq.html
    # 3. import uniq.html

    BEGIN { FS = " " }

    $2 ~ /^HREF/ {
    if (!($2 in seen)) {
    seen[$2]
    print $0
    }
    next
    }

    {
    print $0
    }