![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
文章平均质量分 50
葉王
人生的意义在于传承
展开
-
shell教程一 :介绍
shell教程一 :介绍 大家好,自工作至今,因为工作环境原因(CenOS6.X 集群),经常用到shell的编程,shell是linux下开发必不可少的利器。 shell的优势:它是linux 环境 必备的脚本语言,在linux下一般不需要 搭建环境,可以直接使用。 其他的优势就是,将重复的命令操作 简化。 教程主要分为 1.参数 $: 的各种含义 2.基本语法 shell原创 2016-03-29 21:25:22 · 457 阅读 · 0 评论 -
shell教程二: shell中的$
shell教程二(shell中的$) shell脚本中你可能经常看到"$",他的含义是什么吗 假设环境: 一个shell文件 shell.sh; linux命令行 >>>; $0 这个程序的执行名字 >>> shell.sh $0在 shell.sh脚本中 代表 字符串 "shell.sh" $n 这个程序的第n个参数值,n=1..9 >>> s原创 2016-03-29 22:31:42 · 388 阅读 · 0 评论 -
shell教程八:except脚本 实现无密登录
理解except脚本几个简单参数 脚本代码如下: ############################################## #!/usr/bin/expect set timeout 30 spawn ssh -l username 192.168.1.1 expect "password:" send "ispass\r"转载 2016-03-30 21:30:31 · 1328 阅读 · 0 评论