狮子的雄心,骆驼的耐力,孩子的执著!
发布时间: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 "---------------------------------------".........
发布时间:2012-11-27 14:07:59
......