[Permission denied error] -sh: ./myscript.txt: Permission denied

When I tried executing my script got the below error.
Also myscript.txt is having executable permission.
-sh: ./myscript.txt: Permission denied

Please provide me help in this issue!

Thanks in advance!

Hoping for some help!

As mentioned on our FAQ, you need to run them as “sh myscript.txt” not as “./myscript.txt”