12 lines
238 B
Bash
Executable File
12 lines
238 B
Bash
Executable File
#!/bin/bash
|
|
|
|
input=$1
|
|
current=0
|
|
for addr in $(cat $1) ; do
|
|
w=$(expr substr $addr 1 8)
|
|
x=$(expr substr $addr 9 8)
|
|
y=$(expr substr $addr 17 8)
|
|
z=$(expr substr $addr 25 8)
|
|
echo "$((2#$w)).$((2#$x)).$((2#$y)).$((2#$z))" >> $2
|
|
done
|
|
exit |