Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use Bash's For loop

Shulou Source: shulou.com Published: 2022-06-03 06:57:26 11月15日 Update

This article mainly explains "how to use Bash's For cycle". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use Bash's For cycle".

With Bash Shell's for loop, the increment is 500 at a time.

The code is as follows:

#! / bin/bash

#

# the number incremented each time

ADD_NUM=500

# if you increment 1, uncomment the following line, and comment accordingly at the beginning of another for sentence.

# for ((iTune1)

Tags: Loops learning content comments code that is beginnings ideas situations articles more knowledge knowledge points articles follow questions practice push research verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MariaDB Huawei Linux Xiaomi