Introduction
Introduction Statistics Contact Development Disclaimer Help
ip2dec - various - Various utilities developed at bitreich.
git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinw…
Log
Files
Refs
Tags
---
ip2dec (253B)
---
1 #!/bin/sh
2 #
3 # Convert IPv4 to decimal IPv4.
4 #
5
6 if [ $# -lt 1 ];
7 then
8 printf "usage: %s ipv4addr\n" "$(basename "$0")" >&2
9 exit 1
10 fi
11
12 ipv4addr="$1"
13
14 printf "%s\n" "${ipv4addr}" \
15 | awk -F "." '{ printf "%d\n", (16777216*$1)+(65536*$2)+(256*$3)…
16
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.