I have this on a file:
github - https://github.com/search?q=
google - https://www.google.com/search?q=
pixabay - https://www.pixabay.com//es/images/search/
map - https://www.google.com/maps/place/
giff - https://giphy.com/search/
I want to get the first column on a dmenu list. I can get this by: awk '{print $1}' file | dmenu
that gives me the first result(column), but I need to pass the las column (the actual url). In other words, I want to hide the url when launching dmenu
. Fzf
has an option that makes possible this very easy: echo file|fzf --with-nth=1 | awk '{print $3}'
.