摘要: shell 变量赋值 1.read 进行赋值 read的脚本中示例语法 [root@localhost ~]# vim read-1.sh[root@localhost ~]# cat read-1.sh#! /bin/bashread -p "请输入一个值" Varecho "您输入的变量值为 $ 阅读全文
posted @ 2023-04-10 18:13 甜甜de微笑 阅读(565) 评论(0) 推荐(0)
摘要: 1. 什么是Shell shell就是一个命令解释器。 shell分为交互式shell和非交互式shell. 交互式shell就是命令行上一条一条命令的执行。 非交互式shell就是以脚本的方式运行。 通过变量$-来查看是否是交互式或非交互式shell [root@localhost ~]# ech 阅读全文
posted @ 2023-04-10 17:52 甜甜de微笑 阅读(80) 评论(0) 推荐(0)