You can run shell programs by using the command sh filename.sh
You can compile and run C programs using the commands
cc filename.c
./a.out
You don't need to run "sh" before calling a shell script, things work just fine omitting another shell to be started up unnecessary.
@u-man: If the shell isn't executable, then you have only the option that Sanjeev posted. Unless you are going to elaborate on an answer, perhaps you should refrain from commenting. @antonyjute: You'll get better answers if you put a little more detail into your questions.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |