aboutsummaryrefslogtreecommitdiff
path: root/scripts/dupe-finder.sh
blob: 9ffae6d725f81315c641ccc000dd4c830b7e1746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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 [[ -z $result ]]; then
	exit
else
	VGSTASH_TABLE_WIDTH=80 vgstash list | head -n 2
	echo "$result"
fi