From f09879b85dd2dffe659e00f8d19c04507f89d690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 24 May 2023 00:12:55 +0200 Subject: inet6.sh --- usr/local/bin/inet6.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 usr/local/bin/inet6.sh diff --git a/usr/local/bin/inet6.sh b/usr/local/bin/inet6.sh new file mode 100755 index 0000000..94b761a --- /dev/null +++ b/usr/local/bin/inet6.sh @@ -0,0 +1,3 @@ +#!/bin/sh +k=`ip a s dev wlp0s20f3 scope global | grep inet6 | grep -v fd16 | cut -d\ -f6 | cut -d/ -f1 | head -n1` +echo -n $k -- cgit v1.2.3