zoukankan      html  css  js  c++  java
  • U-Boot shell脚本语法

    /**********************************************************************
     *                       U-Boot shell脚本语法
     * 说明:
     *     之前每次看U-Boot的环境变量,里面经常有if、while、for,就当Linux 
     * Shell脚本来用,也没去找文档看看。
     *
     *                                2018-7-16 深圳 宝安西乡 曾剑锋
     *********************************************************************/
    
    一、参考文档:
        1. U-Boot Scripts
            http://www.compulab.co.il/utilite-computer/wiki/index.php/U-Boot_Scripts
        2. 14.2.17. How the Command Line Parsing Works
            http://www.denx.de/wiki/view/DULG/CommandLineParsing#Section_14.2.17.
    
    二、主要条件流控语法:
        1. if <condition>; then <command list>; [ elif <condition>; then <command list>; ] ... [ else <command list>; ] fi
        2. while <condition>> ; do <command list> ; done
        3. until <condition> ; do <command list> ; done
        4. for <name> in <word list> ; do <command list> ; done
  • 相关阅读:
    vue 定义全局函数和变量
    大学感受
    NOIP2018 游记
    NOI2018 游记
    THUSC 2018 游记
    APIO2018 游记
    SXOI2018游记
    poorpool 的 考场 NOI Linux 配置
    关于 poorpool
    NOIP2017 游记
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/9316290.html
Copyright © 2011-2022 走看看