dont put duplicates in the lists

This commit is contained in:
vulpine 2020-11-10 12:27:42 -05:00
parent 69974bff96
commit cd77a2eb1b
1 changed files with 1 additions and 1 deletions

2
list
View File

@ -4,6 +4,6 @@ for fn in $(grep -rl "$1" index | cut -b 7- | rev | cut -b 5- | rev);do
echo "$fn" >> "$2"
done
sort -V "$2" > "$2.temp"
sort -V "$2" | uniq > "$2.temp"
mv "$2.temp" "$2"