aboutsummaryrefslogtreecommitdiff
path: root/scripts/dupe-finder.sh
blob: dec0d6899f892e10b3af682bfdec04f8348dcfa7 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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