Skip to content

Commit

Permalink
split-up-into-slash24.sh: Support generic whitespace separated input …
Browse files Browse the repository at this point in the history
…on STDIN
  • Loading branch information
xtaran committed Dec 20, 2024
1 parent e3693ae commit 4c6d712
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/split-up-into-slash24.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ if [ -n "$*" ] ; then
splitup_cidr_ranges
done
else
while read ip ; do
splitup_cidr_ranges
while read ips ; do
for ip in $ips; do
splitup_cidr_ranges
done
done
fi

0 comments on commit 4c6d712

Please sign in to comment.