From f4df40f992282e3b0212d24abafc0823b97a8626 Mon Sep 17 00:00:00 2001 From: hugodu69 Date: Mon, 9 Mar 2020 12:10:19 +0100 Subject: [PATCH] little change in script to work with linux --- outf.txt | 1 - outft.txt | 1 - script_loop_test.sh | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 outf.txt delete mode 100644 outft.txt diff --git a/outf.txt b/outf.txt deleted file mode 100644 index 8b13789..0000000 --- a/outf.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/outft.txt b/outft.txt deleted file mode 100644 index 314d73b..0000000 --- a/outft.txt +++ /dev/null @@ -1 +0,0 @@ -% diff --git a/script_loop_test.sh b/script_loop_test.sh index c1db746..ad049a3 100644 --- a/script_loop_test.sh +++ b/script_loop_test.sh @@ -3,7 +3,7 @@ # script to launch a lot of time a program to see if it always output the same result # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -let i=0 +i=0 # launch the output, write it into the file temoin.txt, and echo the content ./a.out test > temoin.txt @@ -31,7 +31,7 @@ done ./a.out test > exemple.txt while diff temoin.txt exemple.txt do - let i++ + i=$((i+1)) echo '\033[1;34m'$i'\033[0m' ./a.out test > exemple.txt done