|
|
|
|
|
by jneen
4948 days ago
|
|
Rather than looping through the lines of the config file and removing commented lines, you may consider just using grep and letting the shell take care of the whitespace: # NB: left unquoted so it's split by the IFS.
blocked_sites=$(grep -v '^#' "$blocked_hosts")
|
|