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.
ubuntu bash script
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.
add a comment |
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.
ubuntu bash script
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
add a comment |
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.
ubuntu bash script
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
ubuntu bash script
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
add a comment |
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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