]> git.feebdaed.xyz Git - 0xmirror/pi-hole.git/commit
debug - speed up processing and display of file contents and services
authorRob Gill <rrobgill@protonmail.com>
Mon, 10 Nov 2025 04:33:07 +0000 (14:33 +1000)
committerRob Gill <rrobgill@protonmail.com>
Mon, 10 Nov 2025 04:33:07 +0000 (14:33 +1000)
commitbf41c3dded6e8dcef6ef8654823e059b2092baae
treef887c1bec3bcb55abaeb3209bdbe818c261844c0
parentc9eb377fba2eb457656c6b680f26b85014a1ef7e
debug - speed up processing and display of file contents and services

Use bash-internal globs and parameter expasion in preference to
assignment from output of ls or basename per file/directory.

When displaying file contents, call sed once and preprocesses the entire
file (eg pihole.toml), rather than spawning a new sed process for every
line of the file.

When checking services, call awk once to extract all data for each ip:port
pair, rather than three times.

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
advanced/Scripts/piholeDebug.sh