balta2ar / brotab

Control your browser's tabs from the command line
MIT License
389 stars 27 forks source link

info in bt dup is misleading #60

Closed iwconfig closed 2 years ago

iwconfig commented 2 years ago

Because in the examples the last pipe is bt close

$ bt dup
Show duplicates by Title:
bt list | sort -k2 | awk -F$'\t' '{ if (a[$2]++ > 0) print }' | cut -f1 | bt close

Show duplicates by URL:
bt list | sort -k3 | awk -F$'\t' '{ if (a[$3]++ > 0) print }' | cut -f1 | bt close

~Show~Close duplicates

Help screen as well

    dup                 display reminder on how to show duplicate tabs using
                        command-line tools         ^^^^
balta2ar commented 2 years ago

Great catch, thanks! Never trust perlbash-oneliners :sweat_smile: