247,270 views
0 votes
0 votes
Write a shell script program (evenodd.sh) which adds the odd numbers in odd lines and adds the even numbers in even lines. Write the result on the standard output! In each lines there are at least 2 numbers. The filename is given by a parameter.

User Rima
by
3.0k points

1 Answer

26 votes
26 votes
Enjoy. Thanks hope it helps
Write a shell script program (evenodd.sh) which adds the odd numbers in odd lines-example-1
User Aniket Kulkarni
by
2.7k points