Get IPv4 address of interface
go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Vladimir Smagin 18609fff4a Изменить 'readme.md' 1 month ago
build/package fix 1 month ago
.gitignore add pipeline 1 month ago
Jenkinsfile fix 1 month ago
main.go import 1 month ago
readme.md Изменить 'readme.md' 1 month ago

readme.md

Usage

Get interface IP in bash script:

#!/bin/bash

ip=$(getip4 eth0)

echo "My IP ${ip}"

Install

Visit http://deb.blindage.org/ to get deb package or compile from source code.