ANONYMOUS wrote:
> Also one more question in the below sample .sh for file has not been included, is it necessary to remove it because, when I am running on my system I need to add .sh or else I have error.
> Kindly clear my this doubt
>
> % tobacco_nation WHO_tobacco_control_tonly.csv 2030 Female
> The global maximum percentage of Female tobacco users in 2030 is predicted to be in Andorra (AND) at 42.3
Hi,
If you are running the standard Ubuntu/Bash/Gnu-Shell-Tools set up, having the .sh on the end of file name should not matter. Instead you need the #!/usr/bin/env bash as the first line. (To my taste, having .sh at the end of Shell script is misleading unless you intend to use sh (ie the original Shell, of which Bash is a derivative.).
Cheers
MichaelW