linux - shell the program: recycling

cycle:

  • for:

    for 变量名 in 列表;do
      循环体
    done
  • while:

  • until:

Gets a circular list:

  • Direct written list:
  • Command generation
    • {1..10},{a..z}
    • seq command:
  • Returns a list of commands: $ (ls / data), `ls / data`
  • Use glob: For example:. * Sh
  • Reference variable

Guess you like

Origin www.cnblogs.com/franc/p/12520167.html