HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

do — This shell keyword is used with `for`, `while`, `select`, and `until` to mark the start of a loop.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shellcommandkeywordthisuseddocliwith

Problem

How to use the do command: This shell keyword is used with for, while, select, and until to mark the start of a loop.

Solution

do — This shell keyword is used with for, while, select, and until to mark the start of a loop.

View documentation for the for keyword:
tldr for


View documentation for the while keyword:
tldr while


View documentation for the select keyword:
tldr select


View documentation for the until keyword:
tldr until

Code Snippets

View documentation for the `for` keyword

tldr for

View documentation for the `while` keyword

tldr while

View documentation for the `select` keyword

tldr select

View documentation for the `until` keyword

tldr until

Context

tldr-pages: common/do

Revisions (0)

No revisions yet.