tag:blogger.com,1999:blog-8970602650987466237.post1518005722219736472..comments2023-04-13T05:49:37.499-07:00Comments on Basic Commands with simple shell scripts:UNIX: Write a shell script to find the sum of even numbers upto ‘n’ashishhttp://www.blogger.com/profile/04007043901100304029noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8970602650987466237.post-84455901881466366312020-11-29T11:17:08.019-08:002020-11-29T11:17:08.019-08:00thanks.....
thanks.....<br />Anonymoushttps://www.blogger.com/profile/11378996704772551086noreply@blogger.comtag:blogger.com,1999:blog-8970602650987466237.post-40947774832767498282019-02-19T10:44:04.237-08:002019-02-19T10:44:04.237-08:00thank you so much!!thank you so much!!gjshivrajnoreply@blogger.comtag:blogger.com,1999:blog-8970602650987466237.post-1064254226343791482017-04-11T17:59:59.368-07:002017-04-11T17:59:59.368-07:00Found many errors in your program. This works fine...Found many errors in your program. This works fine:<br /><br /><br />#! /bin/bash<br />echo enter limit<br />read n<br />i=2<br />while [ $i -lt $n ]<br />do<br />sum=$((sum+i))<br />i=$((i+2))<br />done<br />echo $sum.<br /><br />Thanks.Anirudh Mhttps://www.blogger.com/profile/09767873095692372134noreply@blogger.com