Prerequisite Exam Error

Hello, I did my test today. And I checked all my scripts before submitting.

There are no problems at that time, but after I submit it, the autocorrection said it’s wrong.

I don’t know what is the problem,does anyone who have the same situation like me??

The code is down here. Do you know what the problem is??


Hi @bbaekddo100,

welcome to our community.

If you run your script the command below, does it work?


If not, could you try replacing the first line of your code with “#! /bin/bash” instead of “#! /bin/sh” ?

Hmm, it still works, (I didn’t change my script)