Q. How do I find factorial of a number using recursion function in Bash Ans: #!/bin/bash #Recursive factorial function factorial() { local=$...Read more »

The Magician Of Linux
Q. How do I find factorial of a number using recursion function in Bash Ans: #!/bin/bash #Recursive factorial function factorial() { local=$...Read more »
Q. How do I write Shell Script function to find "a" to the power "b" Ans. #!/bin/bash #function to find "a" to...Read more »
Q: How do I reverse a string in Linux/Unix? Ans: #!/bin/bash read -p "Enter string:" string len=${#string} for (( i=$len-1; i>=...Read more »
Q. How do I print fibonacci series in Bash Ans: #!/bin/bash c=0 a=1 b=1 read -p "Enter limit of fibonacci Series:" n echo -n ...Read more »