Comment on AdGuard/PiHole Blocklists merge duplicates
easeKItMAn@lemmy.world 1 year ago
If I’m understanding you correctly, you could make use of a shell script for this. Use WGET to download lists, then combine them into a single large file, and finally create a new file with no duplicates by using “awk ‘!visited[$0]++’”
wget
cat *.txt > all.txt (This overwrites all.txt)
awk ‘!visited[$0]++’ all.txt > no_duplicates.txt
BinaryUnit@lemmy.world 1 year ago
When no tool is available bash to the rescue, thank you for this it seems actually simpler then I thought :)