Q. How do I write Bash Script to add two numbers using function Ans: #!/bin/bash #function to add two numbers add() { x=$1 y=$2 echo -e ...Read more »

The Magician Of Linux
Q. How do I write Bash Script to add two numbers using function Ans: #!/bin/bash #function to add two numbers add() { x=$1 y=$2 echo -e ...Read more »
Q. How to use array in Bash for taking input and displaying it Ans: #!/bin/bash for((i=0;i do echo "enter `expr $i + 1` number" re...Read more »