Skip to content

Instantly share code, notes, and snippets.

@pry0cc
Created October 19, 2020 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pry0cc/4f490b6a2c57f69e03b2989cc28f28ca to your computer and use it in GitHub Desktop.
Save pry0cc/4f490b6a2c57f69e03b2989cc28f28ca to your computer and use it in GitHub Desktop.
big-ranges.sh
#!/bin/bash
ranges="$1"
cat $ranges | tr '/' ' ' | while read ip mask; do if [[ $mask -lt 22 ]]; then; echo "$ip/$mask"; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment