Q. How do I print pyramid of numbers in Bash Ans. Before writing bash script lets understand how we going to print this pattern. We do it in...Read more »

The Magician Of Linux
Q. How do I print pyramid of numbers in Bash Ans. Before writing bash script lets understand how we going to print this pattern. We do it in...Read more »
Q. How do I print pyramid of stars using function in Bash Ans. Before writing bash script lets understand how we going to print this pattern...Read more »
Q: How do I write Bash Script to find Greatest of Four Numbers using If-Else-If Statement Ans: #!/bin/bash read -p "Enter first Number:...Read more »
Q. How do I write Bash Script to find Armstrong number Ans: #!/bin/bash #Script to find armstrong number till 500, you can change it i=1 whi...Read more »
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 check whether a Input String is Palindrome or not in Linux and Unix Ans: #!/bin/bash read -p "Enter the String:" n len...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 »
Q: How do I find the length of the String in Bash Ans: There are number of ways to find the length of the String in Bash. Method 1: $ word=...Read more »
Q: What is RPM of Hard disk? Ans: RPM Short form for Revolutions Per Minute, RPM is used to help determine the access time on computer hard ...Read more »
Q. How do I swap two numbers without using addition and subtraction in Bash Ans: #!/bin/bash read -p "Enter first number :" first ...Read more »
Q. How do I use Multi Line comment in Bash Ans: We know that we can comment a line using '#' in Shell Script, but what if we want to...Read more »
Q. How do I write selection sort in Bash Ans: #!/bin/bash echo "enter the number" read n echo "enter number in an array"...Read more »
Q. How do I write Insertion Sort in Bash Ans: #!/bin/bash echo "enter the number" read n echo "enter number in an array"...Read more »
Q. How do I write shell script to find Smallest and Greatest number in an array Ans: #!/bin/bash echo "enter size of an array" rea...Read more »
Q. How do I write Shell Script to print number in descending order Ans: #!/bin/bash echo "enter maximum number" read n # taking in...Read more »
Q. How do I swap two numbers using addition and subtraction in Bash Ans: #!/bin/bash echo "enter first number" read a echo "e...Read more »
Q. How do I write Bubble sort in Bash Ans: #!/bin/bash echo "enter maximum number" read n # taking input from user echo "ente...Read more »
Here are Logical operators that are used during Shell Script. OPERATOR DESCRIPTION cond1 -a cond2 True if cond1 and cond2 are True(Perfor...Read more »