filmov
tv
Shell Scripting Tutorial for Beginners 10 - Perform arithmetic operations
![preview_player](https://i.ytimg.com/vi/kr3WP_-bu8A/sddefault.jpg)
Показать описание
The Arithmetic expression is very important feature for performing number arithmetic operations in scripts.
By default variables are treated as strings in bash scripts.
But parsing a string to numbers is very easy using double parentheses and external command such as expr.
Arithmetic operations in Bash Shell
Arithmetic operations can be done on integers using the following methods
$(( expression ))
echo "Addition = $(( number_1 + number_2 ))"
expr — evaluate expression
we can also use expr command to perform Arithmetic operations on numbers.
echo "Addition = $(expr $number_1 + $number_2 )"
★★★Top Online Courses From ProgrammingKnowledge ★★★
★★★ Online Courses to learn ★★★
★★★ Follow ★★★
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Shell Scripting Tutorial | Shell Scripting Crash Course | Linux Certification Training | Edureka
Bash Scripting Tutorial for Beginners
Shell Scripting Crash Course - Beginner Level
Bash in 100 Seconds
Shell Scripting in 20 Minutes - Crash Course | In One Video for Beginners | MPrashant
you need to learn BASH Scripting RIGHT NOW!! // EP 1
Learn Shell Scripting in Less than 1 minute Tutorial 😱 #bash #devops
Shell Scripting Tutorial
How to find the list of users who are not currently logged in in Linux
Shell Scripting for Absolute Beginners | Learn in 3 hours | Start from Zero
Become a shell wizard in ~12 mins
Shell Scripting Tutorial for Beginners 1 - Introduction
Shell Scripting Tutorial | Linux Tutorial | Shell Scripting Training | Intellipaat
Master SHELL SCRIPTING in ONE VIDEO for Beginners 🔥 [HINDI] | MPrashant
Bash Shell Scripting Tutorial | Shell Scripting Tutorial | Learn Shell Programming
BASH scripting will change your life
SHELL SCRIPTING Tutorial | Linux Bash Scripting in One Video [HINDI]
Introduction to Shell Scripting | Shell Scripting Tutorial for Beginners
Bash Shell Scripting Tutorial For Beginners - Bash Basics in 20 Minutes
LEARN SHELL SCRIPTING IN 4 HOURS | ADAM | WezvaTech | New DevOps Batch Details : Call @7829633132
Beginner's Guide to the Bash Terminal
shell Scripting course in Telugu | Shell Scripting for beginners
Linux SHELL SCRIPTING in ONE VIDEO For Beginners [ENGLISH] 2024 | MPrashant
Shell Scripting Tutorial for Beginners 15 - WHILE Loops
Комментарии