diff --git a/scripts/prune.sh b/scripts/prune.sh index a551998..45004dd 100755 --- a/scripts/prune.sh +++ b/scripts/prune.sh @@ -21,9 +21,7 @@ sed -i '1d' $torrents_csv_tmp # Sort by seeders desc (so when we remove dups it removes the lower seeder counts) # Remove dups, keeping the last ones -sort -r -t';' -k1,1 -o $torrents_csv_tmp $torrents_csv_tmp -sort -r -u -t';' -k1,1 -o $torrents_csv_tmp $torrents_csv_tmp - +tac $torrents_csv_tmp | sort -u -t';' -k1,1 -o $torrents_csv_tmp # Same for the infohashes scanned sort -u -o $scanned_out $scanned_out