Skip to content

dbzer0/ipfmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipfmt - ip converter

Convert IP address between 5 standard formats:

  • Dotted Hexadecimal
  • Dotted Octal
  • Undotted Integer
  • Undotted Hexadecimal
  • Combo in format Hexadecimal.Octal.Integer.Hexadecimal

Usage

# ipfmt 127.0.0.1
ip              : 127.0.0.1
hex             : 0x7f.0x0.0x0.0x1
octal           : 0177.0.0.01
integer         : 2130706433
hex (no dotted) : 0x7f000001
combo (h.d.o.h) : 0x7f.0.0.0x1

Build

# make
make -C src all
make[1]: Entering directory '/home/user/code/ipfmt/src'
go build -ldflags "-X main.Version=0.0.1 -X main.Build=`git rev-parse HEAD`" -o ../bin/ipfmt
make[1]: Leaving directory '/home/user/code/ipfmt/src'

# ./bin/ipfmt
Usage:
  ./bin/ipfmt 127.0.0.1

About

IP converter (hex, decimal, octet, integer)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published