mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			775 B
		
	
	
	
		
			HTML
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			775 B
		
	
	
	
		
			HTML
		
	
	
	
		
			Vendored
		
	
	
	
<html>
 | 
						|
  
 | 
						|
  <head>
 | 
						|
    <meta charset="utf-8">
 | 
						|
    <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
						|
    <link rel="stylesheet" href="../../../../../style.css">
 | 
						|
    <base target="_parent">
 | 
						|
    <title data-trilium-title>While loop</title>
 | 
						|
  </head>
 | 
						|
  
 | 
						|
  <body>
 | 
						|
    <div class="content">
 | 
						|
       <h1 data-trilium-h1>While loop</h1>
 | 
						|
 | 
						|
      <div class="ck-content">
 | 
						|
        <p>Documentation: <a href="http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html">http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html</a>
 | 
						|
 | 
						|
        </p><pre><code class="language-text-x-sh">#!/bin/bash
 | 
						|
 | 
						|
# This script opens 4 terminal windows.
 | 
						|
 | 
						|
 | 
						|
 | 
						|
i="0"
 | 
						|
 | 
						|
while [ $i -lt 4 ]
 | 
						|
 | 
						|
do
 | 
						|
 | 
						|
    xterm &
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    i=$[$i+1]
 | 
						|
 | 
						|
done</code></pre>
 | 
						|
      </div>
 | 
						|
    </div>
 | 
						|
  </body>
 | 
						|
 | 
						|
</html> |