2-9 of 17,600,000 results
Open links in new tab
  1. Shell Script to Add Two Numbers {4 Practical Examples}

    Apr 26, 2025 · 1. Adding Two Numbers To add two numbers in a shell script, you can use the expr command or the built-in Bash features. Below is an example of how to add two numbers …

  2. How to Sum Up Numbers in Bash [Explained With Examples]

    May 4, 2024 · Addition is one of the basic math operations. This article shows how to sum numbers in Bash using various commands.

  3. scripting - how can I add (subtract, etc.) two numbers with ...

    I can read the numbers and operation in with: echo "First number please" read num1 echo "Second number please" read num2 echo "Operation?" read op but then all my attempts to …

  4. shell - Adding up numbers in PowerShell - Stack Overflow

    Nov 13, 2018 · I am trying to add up two numbers in PowerShell. I have the input the user gives stored in $Value1 and $Value2. However I can't find any way to actually add these ...

  5. How to Add Numbers in Bash | Delft Stack

    Feb 2, 2024 · This tutorial shows different ways of adding numbers in a bash script using expr, arithmetic expansion, bc and awk.

  6. Addition of Bash Variables [4+ Examples] - LinuxSimply

    Jan 23, 2024 · A. Adding Two Variables With the “expr” Command in Bash Script There are two approaches to using the expr command to add two variables with the expr command.

  7. shell - How to add arithmetic variables in a script - Unix ...

    Explore related questions shell shell-script arithmetic See similar questions with these tags.

  8. shell script - Adding two numbers using expr - Unix & Linux ...

    I'm learning Shell scripting for a diploma in IT I'm currently doing. I'm trying to write a small script that adds two numbers as shown as in one of the tutorials we were given. echo "Enter two nu...