double parenthesis in shell scripting | (( )) vs $(( )) | mathematical calculations with bc & (( ))

Опубликовано: 15 Октябрь 2024
на канале: Pedagogy
1,878
82

Hello guys , This video is about understanding the need for double parenthesis and bash calculator in shell scripting to perform mathematical operations with examples. I started with explaining the limitation of shell to perform mathematical arithmetic operations along with examples . After that , I discussed the use of double parenthesis in shell scripting to perform arithmetic mathematical calculations on integers with examples. I briefly elaborated bc which is bash calculator that can be used to perform operations on floating numbers also along with integers. Examples on bc and double parenthesis are provided throughout the video.
After that , I discussed the difference between (( )) and $(( )) that is difference between double parenthesis with dollar and without dollar . At the end I elaborated the exit status code of parenthesis.
Topics covered in this video are :
double parenthesis in shell scripting
(( )) in shell scripting
$(( )) in shell scripting
(( )) vs $(( )) in shell scripting
arithmetic operations using double parenthesis in shell scripting
mathematical calculations for integers in shell scripting
bash calculator for floating number calculation in shell scripting
exit status code of double parenthesis in shell scripting
double parenthesis in if else in shell scripting
#double #parenthesis #arithmetic #operations #shell_scripting

_____________________________________________________
Support My Work On ...

Patreon :)   / pedagogy  

_____________________________________________________
Connect With Me On ...

Telegram :) https://t.me/vpedagogy2
Instagram :)   / vikramsingh100998  
LinkdIn :)   / vikram-singh-0b3712178  
Facebook :)   / vikramsingh100998