mirror of
https://github.com/ethanaicode/Adobe-Block-Hosts-List.git
synced 2025-07-13 09:51:56 -04:00
11 lines
289 B
Bash
Executable file
11 lines
289 B
Bash
Executable file
#!/bin/bash
|
|
# merge.sh - Merge new host entries from hosts.new.temp into hosts.new (removing duplicates)
|
|
|
|
TEMP_HOSTS="hosts.new.temp"
|
|
HOSTS="hosts"
|
|
NEW_HOSTS="hosts.new"
|
|
|
|
cp "$HOSTS" "$NEW_HOSTS"
|
|
grep -vxFf "$HOSTS" "$TEMP_HOSTS" >> "$NEW_HOSTS"
|
|
|
|
echo "Merged $TEMP_HOSTS into $NEW_HOSTS"
|