Skip to content

Instantly share code, notes, and snippets.

@jnbdz
Created March 2, 2024 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnbdz/1d59d7489f6d24962a78ea1e20ea5062 to your computer and use it in GitHub Desktop.
Save jnbdz/1d59d7489f6d24962a78ea1e20ea5062 to your computer and use it in GitHub Desktop.
find bookmarks/ -type f -name "bookmarks.csv" -print0 | while IFS= read -r -d $'\0' file; do tail -n +2 "$file" | csvquote | awk -F "," '{ gsub(/^[ \t]+|[ \t]+$/, "", $2); print $2 }' | csvquote -u | sed 's/"//g'; done | grep -v '^\s*$' | fzf | xargs -r firefox
@jnbdz
Copy link
Author

jnbdz commented Mar 2, 2024

 2006  cat bookmarks/Coding/GoLang/bookmarks.csv 
 2007  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2
 2008  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote
 2009  sudo apt install csvquote
 2010  apt search csvquote
 2011  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote
 2012  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote -u
 2013  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote | awk -F "," '{ print $2 }' | csvquote -u
 2014  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote | awk -F "," '{ print $2 }'
 2015  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote | awk -F "," '{ print $2 }' | csvquote -u
 2016  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote | awk -F "," '{ print $2 }'
 2017  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote | awk -F "," '{ print $2 }' | csvquote -u | sed 's/"//g'
 2018  sudo apt-get install fzf
 2019  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote | awk -F "," '{ print $2 }' | csvquote -u | sed 's/"//g' | fzf | xargs xdg-open
 2020  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote | awk -F "," '{ print $2 }' | csvquote -u | sed 's/"//g' | fzf | xargs firefox
 2021  cat bookmarks/Coding/GoLang/bookmarks.csv | tail -n +2 | csvquote | awk -F "," '{ print $2 }' | csvquote -u | sed 's/"//g' | fzf | xargs -r firefox
 2022  find bookmarks/ -type f -name "bookmarks.csv" -print0 | xargs -0 cat | tail -n +2 | csvquote | awk -F "," '{ print $2 }' | csvquote -u | sed 's/"//g' | fzf | xargs -r firefox
 2023  find bookmarks/ -type f -name "bookmarks.csv" -print0 | xargs -0 cat | tail -n +2 | csvquote | awk -F "," '{ print $2 }' | csvquote -u | sed 's/"//g'
 2024  find bookmarks/ -type f -name "bookmarks.csv" -print0 | while IFS= read -r -d $'\0' file; do     tail -n +2 "$file" | csvquote | awk -F "," '{ gsub(/^[ \t]+|[ \t]+$/, "", $2); print $2 }' | csvquote -u | sed 's/"//g'; done | fzf | xargs -r firefox
 2025  find bookmarks/ -type f -name "bookmarks.csv" -print0 | while IFS= read -r -d $'\0' file; do     tail -n +2 "$file" | csvquote | awk -F "," '{ print $2 }' | csvquote -u | sed 's/"//g'; done | fzf | xargs -r firefox
 2026  find bookmarks/ -type f -name "bookmarks.csv" -print0 | while IFS= read -r -d $'\0' file; do     tail -n +2 "$file" | csvquote | awk -F "," '{ gsub(/^[ \t]+|[ \t]+$/, "", $2); print $2 }' | csvquote -u | sed 's/"//g'; done | fzf | xargs -r firefox
 2027  find bookmarks/ -type f -name "bookmarks.csv" -print0 | while IFS= read -r -d $'\0' file; do     tail -n +2 "$file" | csvquote | awk -F "," '{ print $2 }' | csvquote -u | sed 's/"//g'; done | fzf | xargs -r firefox
 2028  find bookmarks/ -type f -name "bookmarks.csv" -print0
 2029  find bookmarks/ -type f -name "bookmarks.csv" -print0 | while IFS= read -r -d $'\0' file; do     tail -n +2 "$file" | csvquote | awk -F "," '{ gsub(/^[ \t]+|[ \t]+$/, "", $2); print $2 }' | csvquote -u | sed 's/"//g'; done | fzf | xargs -r firefox
 2030  find bookmarks/ -type f -name "bookmarks.csv" -print0 | while IFS= read -r -d $'\0' file; do     tail -n +2 "$file" | csvquote | awk -F "," '{ gsub(/^[ \t]+|[ \t]+$/, "", $2); print $2 }' | csvquote -u | sed 's/"//g'; done | grep -v '^\s*$' | fzf | xargs -r firefox
 2031  grep -r "x-scheme-handler/http" /usr/share/applications/ ~/.local/share/applications/
 2032  find bookmarks/ -type f -name "bookmarks.csv" -print0 | while IFS= read -r -d $'\0' file; do     tail -n +2 "$file" | csvquote | awk -F "," '{ gsub(/^[ \t]+|[ \t]+$/, "", $2); print $2 }' | csvquote -u | sed 's/"//g'; done | grep -v '^\s*$' | fzf | xargs -r firefox
 2033  cat /usr/share/applications/firefox-esr.desktop
 2034  find bookmarks/ -type f -name "bookmarks.csv" -print0 | while IFS= read -r -d $'\0' file; do     tail -n +2 "$file" | csvquote | awk -F "," '{ gsub(/^[ \t]+|[ \t]+$/, "", $2); print $2 }' | csvquote -u | sed 's/"//g'; done | grep -v '^\s*$' | fzf | xargs -r firefox
 2035  grep -r "x-scheme-handler/http" /usr/share/applications/ ~/.local/share/applications/
 2036  grep -r "x-scheme-handler/http" /usr/share/applications/ ~/.local/share/applications/ | grep .desktop
 2037  grep -r "x-scheme-handler/http" /usr/share/applications/ ~/.local/share/applications/ | grep /*.desktop
 2038  grep -r "x-scheme-handler/http" /usr/share/applications/ ~/.local/share/applications/ | awk -F ":" '{ print $1 }'
 2039  grep -r "x-scheme-handler/http" /usr/share/applications/ ~/.local/share/applications/ | awk -F ":" '{ print $1 }' | grep .desktop
 2040  vim /usr/share/applications/google-chrome.desktop
 2041  vim /usr/share/applications/chromium.desktop 
 2042  cat /usr/share/applications/google-chrome.desktop
 2043  ll
 2044  find bookmarks/ -type f -name "bookmarks.csv" -print0 | while IFS= read -r -d $'\0' file; do     tail -n +2 "$file" | csvquote | awk -F "," '{ gsub(/^[ \t]+|[ \t]+$/, "", $2); print $2 }' | csvquote -u | sed 's/"//g'; done | grep -v '^\s*$' | fzf | xargs -r firefox
 2045  history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment