Skip to content

A lightweight Go tool for merging multiple blocklist files into a single unique list. It is designed for devices with limited RAM, helping prevent Out of Memory errors during blocklist updates.

Notifications You must be signed in to change notification settings

romus204/adguard-blocklist-unifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

adguard-blocklist-unifier

A lightweight Go tool for merging multiple blocklist files into a single unique list. It is designed for devices with limited RAM, helping prevent Out of Memory errors during blocklist updates.

Features

  • Merges multiple text-based blocklists (.txt files)

  • Removes duplicate entries

  • Skips comment lines (starting with !) and empty lines

  • Outputs a single file merged.txt containing unique domains or rules

Usage

go run main.go file1.txt file2.txt file3.txt

The script will:

  • Read all provided files line by line

  • Filter out empty and comment lines

  • Collect only unique entries

  • Save the result into merged.txt

Output:

merged.txt containing all unique non-comment lines from the input files.

About

A lightweight Go tool for merging multiple blocklist files into a single unique list. It is designed for devices with limited RAM, helping prevent Out of Memory errors during blocklist updates.

Topics

Resources

Stars

Watchers

Forks

Languages