Skip to content

List tags usage count prefixed

Mischievous Meerkat edited this page Feb 8, 2020 · 1 revision

To list tags with the tag usage count at the the beginning, run:

buku --np -t | awk 'gsub( /\(|\)$/, "" ) { $1 = $NF; $NF = ""; print }'

or, to sort by usage count:

buku --np -t | awk 'gsub( /\(|\)$/, "" ) { $1 = $NF; $NF = ""; print }' | sort -nr
Clone this wiki locally