Results 1 to 2 of 2
Hi everyone.
I am really rookie in linux for now. Always used Windows.
I need help in writing one tiny script. It is difficult for me right now,but I am ...
- 11-30-2010 #1Just Joined!
- Join Date
- Nov 2010
- Posts
- 1
Hard-easy script
Hi everyone.
I am really rookie in linux for now. Always used Windows.
I need help in writing one tiny script. It is difficult for me right now,but I am sure it is not for you experienced linux users =)
I need to write a script that asks me to enter arbitrary quantity of numbers I want to use ( For example, I enter 5, and script asks me for 5 numbers) then I need enter them -> for example 12 34 43 1 2 and finally I need to sum all these 5 numbers together. I understand that I should use for loop, but I do not know linux language yet( I can do it in Java or JavaScript). Could you please help me? THank you guys!
- 11-30-2010 #2Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Google: bash scripting
Forum Rules
2. No religious posts, political posts, homework questions, or classified ads


Reply With Quote