1
0
mirror of https://github.com/moparisthebest/pi-hole synced 2024-11-25 10:42:14 -05:00

Remove filename from wc

Line 118 and Line 127 changed wc to remove filename from output.
This commit is contained in:
Dan Schaper 2015-11-06 10:24:12 -08:00
parent 642c31c361
commit 15b9fb68d7

View File

@ -115,7 +115,7 @@ fi
########################### ###########################
function gravity_advanced() { function gravity_advanced() {
numberOf=$(wc -l $origin/$andLight) numberOf=$(wc -l < $origin/$andLight)
echo "** $numberOf domains being pulled in by gravity..." echo "** $numberOf domains being pulled in by gravity..."
# Remove carriage returns and preceding whitespace # Remove carriage returns and preceding whitespace
@ -124,7 +124,7 @@ function gravity_advanced() {
# Sort and remove duplicates # Sort and remove duplicates
sort -u $origin/$supernova > $origin/$eventHorizon sort -u $origin/$supernova > $origin/$eventHorizon
numberOf=$(wc -l $origin/$eventHorizon) numberOf=$(wc -l < $origin/$eventHorizon)
echo "** $numberOf unique domains trapped in the event horizon." echo "** $numberOf unique domains trapped in the event horizon."
# Format domain list as "192.168.x.x domain.com" # Format domain list as "192.168.x.x domain.com"