From 2447be472c25fd1dbda299e38487075dc0b55b8c Mon Sep 17 00:00:00 2001 From: Simon Moser Date: Fri, 28 Jan 2022 17:29:25 +0100 Subject: [PATCH] Add new name to README, added examples --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9956acf..cb61b7f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,14 @@ -# ipcalc.py +# iptrans.py -Calculated different representations for IPv4 addresses \ No newline at end of file +Calculated different representations for IPv4 addresses + +## Example +``` +$ ./iptrans.py 127.0.0.1 +Address 127.0.0.1 equals dec 2130706433 / 127.1 / 127.0.1 + equals oct 017700000001 / 0177.01 / 0177.00.01 + equals hex 0x7f000001 / 0x7f.0x1 / 0x7f.0x0.0x1 +$ ping -c 1 0x7f000001 +PING 0x7f000001 (127.0.0.1) 56(84) Bytes Daten. +64 Bytes von 127.0.0.1: icmp_seq=1 ttl=64 Zeit=0.027 ms +``` \ No newline at end of file