Developpement/23SCR/addr_dot.sh

9 lines
196 B
Bash
Raw Permalink Normal View History

2024-12-09 11:53:11 +01:00
#!/bin/bash
addr=$1
x=$(expr substr $addr 1 8)
y=$(expr substr $addr 9 8)
z=$(expr substr $addr 17 8)
t=$(expr substr $addr 25 8)
addr_dot="$((2#$x)).$((2#$y)).$((2#$z)).$((2#$t))"
echo $addr_dot