Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks, it works. To make things more complicated, would it be possible to also delete overlapping IP ranges? e.g. 111.22.33.0-111.22.33.40 includes 111.22.33.0-111.22.33.5 which should be deleted. Commented Jul 5, 2018 at 16:17
  • It would make it more complicated, since sort -u only deals with exact textual matches. I would recommend asking a separate question. Commented Jul 5, 2018 at 16:18