Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2918 → Rev 2919

/scripts/alcasar-bl.sh
94,8 → 94,7
 
# cleaning file and split it ("domains" in $FILE_tmp & "IP" in $FILE_ip_tmp)
function clean_split (){
$SED '/^#/d' $FILE_tmp # remove commented lines
$SED '/^\./d' $FILE_tmp # remove lines beginning with a dot
$SED '/^[.#]/d' $FILE_tmp # remove commented lines and lines beginning with a dot
$SED '/^\s*$/d' $FILE_tmp # remove empty lines
$SED '/[äâëêïîöôüû@,]/d' $FILE_tmp # remove line with "chelou" characters
# extract ip addresses and ip networks for iptables.