tkt
This commit is contained in:
13
SCR1.2/TP08/bin2dot-with-read.sh
Executable file
13
SCR1.2/TP08/bin2dot-with-read.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
for addr in $(cat $1)
|
||||
do
|
||||
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
|
||||
done>$2
|
||||
|
||||
exit
|
||||
Reference in New Issue
Block a user