From 0052ef07bdac595bf8cf165070e17a53909ab151 Mon Sep 17 00:00:00 2001 From: Benji Date: Tue, 17 Nov 2026 17:34:02 +0100 Subject: [PATCH] sync: 2026-11-17 17:34 --- SCR/SCR1.2/TP08/bin2dot-with-read.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 SCR/SCR1.2/TP08/bin2dot-with-read.sh diff --git a/SCR/SCR1.2/TP08/bin2dot-with-read.sh b/SCR/SCR1.2/TP08/bin2dot-with-read.sh old mode 100644 new mode 100755 index b0d8af4..73066c6 --- a/SCR/SCR1.2/TP08/bin2dot-with-read.sh +++ b/SCR/SCR1.2/TP08/bin2dot-with-read.sh @@ -12,7 +12,7 @@ if [[ -s $2 ]]; then fi fi -while [[ ]]; do +while read line; do if [[ $(expr length $line) -eq 32 ]]; then l1=$(expr substr $line 1 8) @@ -26,4 +26,4 @@ while [[ ]]; do echo "Invalid format for : $line the string isn't 32bits long" fi -done +done <$1 >$2