LoginSignup
0
0

More than 1 year has passed since last update.

ipv6-literal.net に変換するスクリプト

Posted at

Windows で UNC アクセスする際に IPv6 のアドレスを簡単に変換したい時に使うシェルスクリプトを書いてみた。

ipv6-literal.net.sh
#!/bin/sh
if=`ifconfig | grep inet6 | sed 's|^.*inet6 \(.*\) p.*|\1|' | awk -F% '{print$1".ipv6-literal.net"}'`
for adrs in $if
    do
    echo $adrs
done
exit
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0