mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
comment
This commit is contained in:
parent
32246e2e15
commit
b7e6c4ec28
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ echo "Getting someone who cares ad list..."
|
||||||
curl -s http://someonewhocares.org/hosts/hosts | grep -v "#" | sed '/^$/d' | sed 's/\ /\\ /g' | awk '{print $2}' >> /tmp/matter.txt
|
curl -s http://someonewhocares.org/hosts/hosts | grep -v "#" | sed '/^$/d' | sed 's/\ /\\ /g' | awk '{print $2}' >> /tmp/matter.txt
|
||||||
|
|
||||||
# Sort the aggregated results and remove any duplicates
|
# Sort the aggregated results and remove any duplicates
|
||||||
<<<<<<< Updated upstream
|
#<<<<<<< Updated upstream
|
||||||
echo "removing duplicates and formatting to address=/<ad domain>/"$piholeIP
|
echo "removing duplicates and formatting to address=/<ad domain>/"$piholeIP
|
||||||
cat /tmp/matter.txt | sort | uniq | sed '/^$/d' | awk -v "IP=$piholeIP" '{sub(/\r$/,""); print "address=/"$0"/"IP}' > /tmp/andLight.txt
|
cat /tmp/matter.txt | sort | uniq | sed '/^$/d' | awk -v "IP=$piholeIP" '{sub(/\r$/,""); print "address=/"$0"/"IP}' > /tmp/andLight.txt
|
||||||
mv /tmp/andLight.txt $eventHorizion
|
mv /tmp/andLight.txt $eventHorizion
|
||||||
|
|
Loading…
Reference in a new issue