Bash script make [closed]











up vote
-2
down vote

favorite












i have to make a script.sh which decide if numbers in command line are integers in base 10 and print :



their sum;



input command line: ./powsnsums.sh anyword A -4 uso 2048 63 anyWORD



expected output:



Sum of numbers is 2115.










share|improve this question













closed as too broad by Kamil Maciorowski, DavidPostill Nov 18 at 12:41


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1




    Welcome to Super User! Please note that superuser.com is not a free script/code writing service. If you tell us what you have tried so far (include the scripts/code you are already using) and where you are stuck then we can try to help with specific problems. You should also read How do I ask a good question?.
    – DavidPostill
    Nov 18 at 12:41










  • This looks like an assignment. There are some good reasons why you are supposed to do your own assignments, including 1/ you need to learn how to learn (find tutorials etc), 2/ doing the work yourself makes it easier to remember the what and the why of the solution, 3/ it's cheating if you don't 4/ good luck with your exams when you don't have the internet to write your answers for you 5/ your professor just saw this post and is going to kick you out for cheating.
    – DavidPostill
    Nov 18 at 12:47

















up vote
-2
down vote

favorite












i have to make a script.sh which decide if numbers in command line are integers in base 10 and print :



their sum;



input command line: ./powsnsums.sh anyword A -4 uso 2048 63 anyWORD



expected output:



Sum of numbers is 2115.










share|improve this question













closed as too broad by Kamil Maciorowski, DavidPostill Nov 18 at 12:41


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1




    Welcome to Super User! Please note that superuser.com is not a free script/code writing service. If you tell us what you have tried so far (include the scripts/code you are already using) and where you are stuck then we can try to help with specific problems. You should also read How do I ask a good question?.
    – DavidPostill
    Nov 18 at 12:41










  • This looks like an assignment. There are some good reasons why you are supposed to do your own assignments, including 1/ you need to learn how to learn (find tutorials etc), 2/ doing the work yourself makes it easier to remember the what and the why of the solution, 3/ it's cheating if you don't 4/ good luck with your exams when you don't have the internet to write your answers for you 5/ your professor just saw this post and is going to kick you out for cheating.
    – DavidPostill
    Nov 18 at 12:47















up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











i have to make a script.sh which decide if numbers in command line are integers in base 10 and print :



their sum;



input command line: ./powsnsums.sh anyword A -4 uso 2048 63 anyWORD



expected output:



Sum of numbers is 2115.










share|improve this question













i have to make a script.sh which decide if numbers in command line are integers in base 10 and print :



their sum;



input command line: ./powsnsums.sh anyword A -4 uso 2048 63 anyWORD



expected output:



Sum of numbers is 2115.







ubuntu bash script






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 18 at 11:15









Mimi3234

11




11




closed as too broad by Kamil Maciorowski, DavidPostill Nov 18 at 12:41


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as too broad by Kamil Maciorowski, DavidPostill Nov 18 at 12:41


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 1




    Welcome to Super User! Please note that superuser.com is not a free script/code writing service. If you tell us what you have tried so far (include the scripts/code you are already using) and where you are stuck then we can try to help with specific problems. You should also read How do I ask a good question?.
    – DavidPostill
    Nov 18 at 12:41










  • This looks like an assignment. There are some good reasons why you are supposed to do your own assignments, including 1/ you need to learn how to learn (find tutorials etc), 2/ doing the work yourself makes it easier to remember the what and the why of the solution, 3/ it's cheating if you don't 4/ good luck with your exams when you don't have the internet to write your answers for you 5/ your professor just saw this post and is going to kick you out for cheating.
    – DavidPostill
    Nov 18 at 12:47
















  • 1




    Welcome to Super User! Please note that superuser.com is not a free script/code writing service. If you tell us what you have tried so far (include the scripts/code you are already using) and where you are stuck then we can try to help with specific problems. You should also read How do I ask a good question?.
    – DavidPostill
    Nov 18 at 12:41










  • This looks like an assignment. There are some good reasons why you are supposed to do your own assignments, including 1/ you need to learn how to learn (find tutorials etc), 2/ doing the work yourself makes it easier to remember the what and the why of the solution, 3/ it's cheating if you don't 4/ good luck with your exams when you don't have the internet to write your answers for you 5/ your professor just saw this post and is going to kick you out for cheating.
    – DavidPostill
    Nov 18 at 12:47










1




1




Welcome to Super User! Please note that superuser.com is not a free script/code writing service. If you tell us what you have tried so far (include the scripts/code you are already using) and where you are stuck then we can try to help with specific problems. You should also read How do I ask a good question?.
– DavidPostill
Nov 18 at 12:41




Welcome to Super User! Please note that superuser.com is not a free script/code writing service. If you tell us what you have tried so far (include the scripts/code you are already using) and where you are stuck then we can try to help with specific problems. You should also read How do I ask a good question?.
– DavidPostill
Nov 18 at 12:41












This looks like an assignment. There are some good reasons why you are supposed to do your own assignments, including 1/ you need to learn how to learn (find tutorials etc), 2/ doing the work yourself makes it easier to remember the what and the why of the solution, 3/ it's cheating if you don't 4/ good luck with your exams when you don't have the internet to write your answers for you 5/ your professor just saw this post and is going to kick you out for cheating.
– DavidPostill
Nov 18 at 12:47






This looks like an assignment. There are some good reasons why you are supposed to do your own assignments, including 1/ you need to learn how to learn (find tutorials etc), 2/ doing the work yourself makes it easier to remember the what and the why of the solution, 3/ it's cheating if you don't 4/ good luck with your exams when you don't have the internet to write your answers for you 5/ your professor just saw this post and is going to kick you out for cheating.
– DavidPostill
Nov 18 at 12:47

















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

AnyDesk - Fatal Program Failure

How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

QoS: MAC-Priority for clients behind a repeater