nitefood / asn

ASN / RPKI validity / BGP stats / IPv4v6 / Prefix / URL / ASPath / Organization / IP reputation / IP geolocation / IP fingerprinting / Network recon / lookup API server / Web traceroute server
MIT License
1.31k stars 159 forks source link

Avoid a warning by new versions of grep and really filter out empty lines #68

Closed mannih closed 1 month ago

mannih commented 2 months ago

When searching for ASN information using a newer version of grep, you get two warnings intermingled with the output: "grep: warning: stray \ before n". I'm assuming the grep -Ev "^\n" was used to filter out empty lines. Changing this to grep -Ev "^$" get rid off the warning and really filters out empty lines.

nitefood commented 1 month ago

good catch, thanks for your contribution!