<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Arithmetic operators in BASH scripting]]></title><description><![CDATA[<p dir="auto">අද කතා කරන්නේ Basic Arithmetic operators ටික ගැන. ඒ කියන්නෙ එකතු කිරීම, අඩු කිරීම , බෙදීම , ගුන කිරීම.</p>
<p dir="auto">ඔයාල දැන් දන්නවනේ කොහොමද bash script file එකක් හදාගන්නෙ කියල.. දන්නෙ නැති අය මෙ Link එක Use කරල ඔක්කොම ටික බලන්න - <a href="https://binurayeshan.blogspot.com" target="_blank" rel="noopener noreferrer nofollow ugc">https://binurayeshan.blogspot.com</a></p>
<p dir="auto">හරි දැන් ඔයාලා හදා ගත්ත script file එකේ මෙන්න මේ code line ටික type කරන්න.</p>
<pre><code>#!/bin/bash

a=2
b=5
c=9

echo "$a,$b,$c"

echo "Sum of variable are = $[a+b+c]" #එකතු කිරිම්

echo "Value of c MOD b = $[c%b] " #mod එක ඒ කියන්නෙ බෙදුවම එන ඉතිරිය

echo "Value of c MOD b = $[c-b] " #අඩු කිරීම

echo "Value of a * c = $[a*c]" #ගුණ කිරීම

echo "Value of c / b = $[c/b]"  #බෙදීම

</code></pre>
<p dir="auto">:male-technologist: :sunglasses:<br />
<img src="/assets/uploads/files/1570406257827-screen-shot-2019-10-07-at-5.27.33-am.png" alt="0_1570406256663_Screen Shot 2019-10-07 at 5.27.33 AM.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://lankadevelopers.lk/topic/402/arithmetic-operators-in-bash-scripting</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 03:08:41 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/402.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Oct 2019 23:58:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Arithmetic operators in BASH scripting on Mon, 07 Oct 2019 17:12:28 GMT]]></title><description><![CDATA[<p dir="auto">patta pata machn</p>
]]></description><link>https://lankadevelopers.lk/post/2348</link><guid isPermaLink="true">https://lankadevelopers.lk/post/2348</guid><dc:creator><![CDATA[Nubelle]]></dc:creator><pubDate>Mon, 07 Oct 2019 17:12:28 GMT</pubDate></item></channel></rss>