#!/usr/bin/env bash # Shows the local network ip for the current machine. ip_line=$(ip addr show | grep 'inet 192.168') the_ip=$(echo $ip_line | awk '{print $2;}') echo $the_ip