码迷,mamicode.com
首页 > 系统相关 > 详细

shell for 循环演示

时间:2019-08-24 00:07:30      阅读:106      评论:0      收藏:0      [点我收藏+]

标签:script   tps   done   name   class   one   ref   code   ash   

 

test.sh

#!/bin/bash
for skill in Ada Coffe Action Java; do
    echo "I am good at ${skill}Script"
done

输出

bogon:Desktop macname$ ./test.sh 
I am good at AdaScript
I am good at CoffeScript
I am good at ActionScript
I am good at JavaScript

 

 

参考:

https://runoob.com/linux/linux-shell-variable.html

 

shell for 循环演示

标签:script   tps   done   name   class   one   ref   code   ash   

原文地址:https://www.cnblogs.com/sea-stream/p/11403080.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!