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