狮子的雄心,骆驼的耐力,孩子的执著!
发布时间:2017-01-13 19:18:45
因此要删除换行符,需要用sed的N命令全部读入(append方式)所有内容后再用s命令全局替换换行符为空。[root@localhost mysql]# cat build-config-DCMAKE_INSTALL_PREFIX=/usr/local/mysql-DCOMMUNITY_BUILD=ON-DENABLED_PROFILING=ON.........【阅读全文】
发布时间:2016-12-20 14:48:38
#!/bin/bash/bin/stty intr ''echo "newa"echo "newb"echo "newc"echo "newd"while read -p "input the repository name[input 'end' to exit] ?" reposdoif [ "$repos" = "newa" ];thenecho "input newa"continueelif [ "$repos" = "newb" ];thenecho "input newb"continueelif [ "$repos" = "newc" ];.........【阅读全文】
发布时间:2016-11-19 15:32:49
说明:蓝色=命令名称 浅绿=命令参数 浅蓝=选项 紫色=目录 系统环境:CentOS 6.2 i686要求:文件a: 10/05766798607,11/20050.........【阅读全文】
发布时间:2013-06-17 11:41:13
#cat aping.sh#!/bin/shpingcmd(){prefix="SERVER $1 PING $2"ping -w 1 -c 1 $2>> /var/log/ping.logret=$?if [ $ret -eq 0 ]then printf "$prefix\t OK\n"else printf "$prefix\t ERROR\n"fireturn 0}echo "" > /var/log/ping.logwhile [ 1 -eq 1 ]doecho "---------------------------------------".........【阅读全文】