随心笔谈
shell脚本自动输入用户名和密码的实现(shell自动重启脚本)学会了吗
#!/bin/bash remoteIp=IP remoteUser=用户名 remotePw=密码 fun […]
Read more →随心记录网事-锻炼心境-记录过往事迹
#!/bin/bash remoteIp=IP remoteUser=用户名 remotePw=密码 fun […]
Read more → ①:在Linux中安装Git yum list git? 列出git安装包 yum install git […]
Read more → 目录引言一、Shell 脚本二、Shell 环境三、第一个shell脚本运行 Shell 脚本有两种方法: […]
Read more → 目录问题描述原因分析解决方案拓展传递给函数的某个参数含有空格 调用并传参数给其他shell脚本,传的参数带 […]
Read more → 目录1.Shell字符串拼接(连接、合并)2.shell产生随机数的方法2.1 通过内部系统变量($RAN […]
Read more → 目录1.访问命令行2 确定参数个数3 shift-访问多个参数4 简单应用5 在Shell函数中使用位置参 […]
Read more →# cat config.sh #!/bin/bash set -e exit_script(){ exit […]
Read more →host=”192.168.1.199″ post=”8888̸ […]
Read more → 重定向简单来说就是把本来已经默认的、确定的输入输出给重新定位到你想要的地方。 重定向这个概念在C语言中就有 […]
Read more → 目录正文一、使用变量二、只读变量三、删除变量四、变量类型五、Shell 注释六、多行注释 定义变量时,变量 […]
Read more →