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`
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