sync: 2026-11-17 16:25

This commit is contained in:
Benji committed 2026-11-17 16:25:03 +01:00
1 parent cf71f6f92a
commit 7e4b8b39de
1 file changed
+8 -5
+8 -5
View File
@@ -7,17 +7,18 @@ fi
dst_file=$(cat $2)
if [[ dst_file -gt 0 ]]; then
read -p "$2 exists. Overwrite? Yes/No --> " -r choice
else
echo "file empty"
fi
if [[ $choice = "Yes" ]]; then
echo "overwriting $2 !"
echo -n "" >$2
fi
else
echo "file empty"
fi
for line in $(cat $1); do
if [[ $(expr length $line) -e 32]]; then
if [[ $(expr length $line) -eq 32]]; then
l1=$(expr substr $line 1 8)
l2=$(expr substr $line 9 8)
@@ -26,6 +27,8 @@ for line in $(cat $1); do
echo "$((2#$l1)).$((2#$l2)).$((2#$l3)).$((2#$l4))" >> $2
else
echo "Invalid format for : $line the string isn't 32bits long"
fi