From c4d62f9e98bf6adcb5dad37e5bdb03439c013156 Mon Sep 17 00:00:00 2001 From: HarshitaKamani Date: Sun, 3 Sep 2023 00:25:11 +0530 Subject: [PATCH] 1st task --- script.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) mode change 100644 => 100755 script.sh diff --git a/script.sh b/script.sh old mode 100644 new mode 100755 index f9971f7..cc7539c --- a/script.sh +++ b/script.sh @@ -5,3 +5,15 @@ # Run the python file, using input1.txt as stdin, and write the output to a file user_output1.txt # Display user_output1.txt to the user as user output, and the file output1.txt as the expected output # Once you have tested out the script and verified it's working, commit it to a branch: + +language=$1 +echo "the language used is $language" + +gcc $2 +cat input1.txt | ./a.out > user_output1.txt +echo "User output: " +cat user_output1.txt +echo "Expected output: " +cat output1.txt + +