#!/bin/bash # Licence : GPL v3 # Author: Laurent HUBERT # # Display connection information # IP_V4_VALUE=$(ip a | grep -v host | grep inet | grep -v inet6 | awk '{print substr($2, 1, index($2, "/")-1)}') IP_V6_VALUE=$(ip a | grep -v host | grep inet6 | awk '{print substr($2, 1, index($2, "/")-1)}') MAIN_USER_VALUE=$(id -u 1000 -n) cat <