hi there,
I was recently introduced to this site by a friend. I hope you guys can help with a code error i can't seem to debug.I can get to add two different data types together. A snippet of the code is below:
It is best to try and be consistent in the way you handle variables and the math. The following uses the same format for all math functions - and no longer has errors.
Thanks alot joeyg. You're the bomb. Pls can u suggest an ebook i can download and read on shell scripting that would be of immense benefit. I appreciate
Other than that, it is often trial and error until you master the commands. One suggestion I often make is to try to solve the problem in small parts with lots of 'echo' commands to track your progress. Once you resolve and know your data is good, you can then delete out all of the lines of 'echo's. This is especially important as you learn how to use new commands.
And of course, use this site as a reference. Hopefully you will become comfortable enough so that you may also be able to contribute and help answer questions for others.