About 1,760,000 results
Open links in new tab
  1. LinuxShell的for循环语句 - EasonJim - 博客园

    Jan 19, 2018 · 第一类:数字性循环 for1-1.sh for1-2.sh for1-3.sh for1-4.sh 第二类:字符性循环 for2-1.sh for2-2.sh for2-3.sh for2-4.sh 第三类:路径查找 for3-1.sh for3-2.sh 总结: 现在一般都使用for in结构,f

  2. Shell 流程控制 - 菜鸟教程

    Shell 流程控制 和 Java、PHP 等语言不一样,sh 的流程控制不可为空,如 (以下为 PHP 流程控制写法): 实例 [mycode4 type='php']..

  3. for command in Linux with Examples - GeeksforGeeks

    Sep 27, 2024 · The for command in linux used in shell scripting to iterate over a set of values or perform set of tasks repeatedly. The for loop allows users to automate operations efficiently which is easier to …

  4. Bash Scripting - For Loop - GeeksforGeeks

    Sep 15, 2023 · Since BASH is a command-line language, we get some pretty feature-rich experience to leverage the programming skills to perform tasks in the terminal. We can use loops and conditional …

  5. while Command in Linux with Example - GeeksforGeeks

    Apr 17, 2024 · The "while" command is a powerful tool in the Linux shell that allows you to execute a series of commands repeatedly based on a given condition. It is commonly used in shell scripts to …

  6. Bash while Loop: Syntax and Examples - Linuxize

    Feb 27, 2026 · The Bash while loop repeatedly executes a block of commands as long as a condition is true. This guide covers the syntax, infinite loops, reading files line by …

  7. 12 Bash For Loop Examples for Your Linux Shell Scripting

    Jul 11, 2011 · This explains both of the bash for loop methods, and provides 12 different examples on how to use the bash for loop in your shell scripts. Bookmark this article for future reference, as this is …

  8. Shell script to loop over the list of strings - Stack Overflow

    Jun 28, 2022 · Below is my variable declaration and in the shell script, I am looking for a way to loop over the list of strings to get each item.

  9. if command in linux with examples - GeeksforGeeks

    Oct 6, 2024 · The if command is one of the most commonly used and versatile tools in Linux shell scripting. It allows you to control the flow of your scripts based on conditional testing. By combining if, …

  10. signals - How to stop the loop bash script in terminal? - Unix & Linux ...

    164 press Ctrl-Z to suspend the script kill %% The %% tells the bash built-in kill that you want to send a signal (SIGTERM by default) to the most recently suspended background job in the current shell, not …