Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary while, until, for construct

Rating
-
Sold
-
Pages
5
Uploaded on
31-05-2024
Written in
2023/2024

This guide describes the construct for while, until, for with examples.

Institution
Course

Content preview

The Linux operating system supports the following iteration constructs:
while
until
for

The following sections describe while,for, and untilconstructs.

on the value of the
Note: A loop is a block of code that repeats a set of commands based
specified conditión.



The while Construct
the constructs that you use to create loops in shell scripts is the while construct. In
ve or are specified within the do and
the commands to be executed
G Wile iteration construct, to delimit commands in an iteration
done keywords. The do and done keywords are used
Construct. The syntax for the while construct is:

, Syntax
while <condition>

do
<command (s)>
done

In the above example, the commands within the do and done keywords are executed as long
as the condition evaluates to true.
Examples
a. #!/bin/bash
a=l

while [ $a -le 10 ]
do
echo $a
((a=^a+l))
done

Written for

Institution
Course

Document information

Uploaded on
May 31, 2024
Number of pages
5
Written in
2023/2024
Type
SUMMARY

Subjects

$18.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
mythreyevenkatesan

Get to know the seller

Seller avatar
mythreyevenkatesan vellalar matriculation higher secondary school
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
20
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions