|
different ways to do it
You should make your shell script file executable first.
$chmod 755 count
You can run it from the directory where it is located as follows.
$./count
One more way execute it as a paramter to the sh command. If you are in a different directory make sure to provide the complete path.
$sh /home/user/count
|