cidr2ip

Small and simple program for converting a CIDR into a netmask
git clone git://git.noxz.tech/cidr2ip
Log | Files | Refs | README | LICENSE

commit 550e1ff607d13b118a801fe7eead9693bad1b16c
parent c9233ff08c56454f3bf8ba2dbe3ba98da8482804
Author: Chris Noxz <chris@noxz.tech>
Date:   Sun,  1 Sep 2019 21:36:41 +0200

Add .gitignore and change example usage to use `seq`

Diffstat:
A.gitignore | 2++
MREADME.md | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,2 @@ +cidr2ip +*.o diff --git a/README.md b/README.md @@ -14,5 +14,5 @@ Example usage of cidr2ip ------------------------ Print a complete CIDR to ip conversion table - for i in {1..32}; do printf '\\%-5s' $i; cidr2ip $i;done + for i in $(seq 1 32); do printf '\\%-5s' $i; cidr2ip $i;done