Created
October 19, 2020 21:10
-
-
Save pry0cc/4f490b6a2c57f69e03b2989cc28f28ca to your computer and use it in GitHub Desktop.
big-ranges.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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