#[SHELL] Show ip debîan #echosystem.fr #!/bin/sh # # Show ip debîan (9/10) for 2 interfaces (eth0, eth1) # ipv4 hostname --ip-address | awk '{ print $2 }' # ipv6 hostname --ip-address | awk '{ print $1 }' # OR ip=`hostname --ip-address` echo $ip