2011/3/29 Rony gnulinuxist@gmail.com:
After I copied your script in byState it works. The difference was with some spaces. It looks like the site's scripts are not formatted and printed properly and they don't give any instructions on the extra steps. Becomes difficult for learners as more time is spent correcting their lapses.
I think what changed was that you started doing ./byState. As I said before, you need to have "." in your path or should do ./program (having "." in your path brings in its own set of problems, so the latter is indeed preferred).
A point to note is that this book assumes a level of familiarity with Unix - how to invoke commands, how to set path etc. You can't blame the book for that.
Binand