Python is a renowned general-purpose programming language. Unlike HTML or CSS, general-purpose programming languages are used in several application domains.…
Browsing: while
Question – How do I create an infinite loop in shell script on Unix/Linux operating system? An infinite loop is…
Similar to for loop, while loop is also entry restricted loop. It means condition is checked before executing while loop.…
Command: while true;do echo “Press CTRL+C to Exit”; done Example 1: Some times we are required to execute some commands…
While Loop: while read line do echo $line done < /tmp/file.txt Note: "line" is a variable which contains a single…