Write a shell script sum.sh that takes an unspecified number of command line arguments (up to 9) of ints and finds their sum. Modify the code to add a number to the sum only if the number is greater than 10

Ans:

#! /bin/sh sum=0

for var in “$@” do

% sh example1.sh  2  4  5     –> run the script as

[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]