2009-02-24
grep匹配与过滤 学习笔记-2
grep提取含有IP的行 root@debian:~# ifconfig eth0|grep “[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9...
grep提取含有IP的行 root@debian:~# ifconfig eth0|grep “[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9...
已经生成ssh的key,所以ssh的时候是不用输入密码的。 用shell来做ssh连接到远程机器,然后压缩打包某个目录的脚本。 #!/bin/sh tar zcfP /root/etc.tar.gz ...
linux shell 制作最简单的计算器! #!/bin/sh echo ‘简易计算器 例如 1+3’ read input echo $[input]
shell脚本里的菜单选项 制作简单的选项,会适当的增强脚本的可用性,例如一套工作方案,放在A,另外一套放在B #!/bin/sh echo “请选择:” xx=”...
近期评论