Program to implement while loop in Linux
PROGRAM TO IMPLEMENT WHILE LOOP.
PROGRAM TO IMPLEMENT WHILE LOOP.
Q.एक ऐसा शैल program लिखिए जो कि एक string को reverse order मे print करे।Ans.read -p “Enter string:” stringlen=${#string}for (( i=$len-1; i>=0; i– ))do# “${string:$i:1}”extract single single character from string.reverse=”$reverse${string:$i:1}”doneecho “$reverse”
RGPV Diploma: Linux: Unit 2 Q 1. शैल कमांड को विकल्प तथा उचित उदाहरण के साथ समझाइए ? OR सिंपल कमांड को समझाइए? Ans. सिंपल … Read more
RGPV Diploma: Linux: Unit 3 Q1. Vi एडिटर को समझाइए | OR Vi एडिटर पर संक्षिप्त टिप्पणी लिखिए | OR एडिटर क्या है ? … Read more
Prob. Consider the following snapshot of a system- Answer the following questions using the Banker’s algorithm-(i) What is the content of the matrix need? (ii) Is … Read more
Prob. Suppose that the given ahead processes arrive for execution at time indicated- Process Arrival Time Burst Time P1 0.0 8 P2 0.4 4 P3 1.0 … Read more
Prob. How many page faults will occur with a reference string 0,1,7,2,3,2,7,1,0,3?There are four frames which are initially empty.Use OPTIMAL Page replacement algorithm Sol. OPTIMAL … Read more
Prob. How many page faults will occur with a reference string 0,1,7,2,3,2,7,1,0,3?There are four frames which are initially empty.Use LRU Page replacement algorithm Sol. LRU … Read more
Prob. How many page faults will occur with a reference string 0,1,7,2,3,2,7,1,0,3? There are four frames which are initially empty. Use 1. FIFO Page replacement … Read more
There are three types of scheduler in Operating system. 1. Long term scheduler (LTS) LTS or Job scheduler, LTS is responsible for creating new processes and … Read more