在shell脚本中,发现case语句的一个问题。就是指定小写字母[a-z]和大写字母[A-Z]的这种方法不管用了。
出现如下情况:[root@station1 ~]# cat case.sh#!/bin/bashwhile :doecho
提取oralce当天的alert log的shell脚本#/bin/sh#get alert of everyday#then name of file is everyday_alert.shdir=
使用shell脚本计算Linux网卡流量,方法中最关键点:
ifconfig $eth_name | grep bytes | awk '{print $6}' | awk -F : '{print $2}' 通过ifconfig eth
环境:本地主机:ha01eth0: 192.168.1.100 //对外IP地址
远程主机:ha02eth0: 192.168.1.200 //对外IP地址
本地主机ha01配置:
[root@ha01 /]# cd /etc/ssh[ro
#!/bin/bash ping_monitor() { host_=(203 204 205 207 208 209 210 212 213 214 215 216 217 218 219 220 221) ping_c
#!/bin/bash PING=`which ping` DATE=`date +%Y%m%d%H%M` TAIL=`which tail` LOG=./ping$DATE.log HOSTS=
#!/bin/bash#********************************##2013-01-11 17:00:00 wanggy exp ##note:ping monitor ##******
#!/bin/bash#2013-01-06 14:00:00 wanggy exp#note:ping monitorset -u#set -xping_fun(){ d_network=192.168.1 echo -n