summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dupe-finder.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/dupe-finder.sh b/scripts/dupe-finder.sh
new file mode 100755
index 0000000..9ffae6d
--- /dev/null
+++ b/scripts/dupe-finder.sh
@@ -0,0 +1,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
5 -0700'>2016-10-14updater.sh: add recursion, error handlingZe Libertine Gamer1-43/+101 2016-10-14Correct pipe-handling behaviorZe Libertine Gamer1-1/+9 2016-10-12Clarify a method to move between platformsZe Libertine Gamer1-2/+5