shell

shell是用户使用 Linux 的桥梁

1.第一个shell语言

新增一个a.sh文档

内容:

#!/bin/sh

myUrl="hello"

echo $myUrl

运行:chmod +x ./a.sh

./a.sh

2.shell的循环

#!/bin/sh

for skill in Tom  THY  Marry  demo ;do

echo "I am ${skill}"

done

运行

posted on 2019-11-29 10:21  thy520  阅读(117)  评论(0编辑  收藏  举报