85ae438
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash # Prints out your local IP PREFIX='ﯱ ' get_local_ip() { IP=$(ip addr | grep -e "inet " | awk 'NR==2' | sed 's/^.*inet.//g; s/\/.*//g') echo "$PREFIX$IP" } get_local_ip