sync: 2026-11-17 16:10

This commit is contained in:
Benji committed 2026-11-17 16:10:02 +01:00
1 parent 5afd9958bf
commit abf1b7ce07
2 files changed
+10 -6

No files matched your search

+7 -6
View File
@@ -4,11 +4,12 @@ if [[ $# -lt 2 ]]; then
echo "usage: $0 <SRC_FILE> <DST_FILE>"
exit 1
fi
echo -n "" >$2
for line in $(cat $1); do
l1=$(expr substr 1 8)
l2=$(expr substr 9 8)
l3=$(expr substr 18 8)
l4=$(expr substr 26 8)
echo "$((2#$l1)).$((2#$l2)).$((2#$l3)).$((2#$l4))."
l1=$(expr substr $line 1 8)
l2=$(expr substr $line 9 8)
l3=$(expr substr $line 18 8)
l4=$(expr substr $line 26 8)
echo "$((2#$l1)).$((2#$l2)).$((2#$l3)).$((2#$l4))" >>$2
done