#!/bin/bash # dupe-finder.sh: Output duplicate games in your database # We're setting the envvar here to enforce the -w argument to uniq result=$(VGSTASH_TABLE_WIDTH=80 vgstash list | uniq -D -f 2 -w 58) if [[ -n $result ]]; then VGSTASH_TABLE_WIDTH=80 vgstash list | head -n 2 echo "$result" fi