Chinaunix首页 | 论坛 | 博客
  • 博客访问: 457611
  • 博文数量: 145
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1139
  • 用 户 组: 普通用户
  • 注册时间: 2014-01-14 16:47
个人简介

路漫漫其修远兮,吾将上下而求索

文章分类

全部博文(145)

文章存档

2016年(10)

2015年(15)

2014年(120)

我的朋友

发布时间:2014-09-25 17:24:39

假设我们定义了一个变量为:file=/dir1/dir2/dir3/my.file.txt可以用${ }分别替换得到不同的值:${file#*/}:删掉第一个 / 及其左边的字符串:dir1/dir2/dir3/my.file.txt${file##*/}:删掉最后一个 /  及其左边的字符串:my.file.txt${file#*.}:删掉第一个 .  及其左边的字符串:file.txt${file##*.}:.........【阅读全文】

阅读(798) | 评论(0) | 转发(0)

发布时间:2014-06-30 14:23:51

学习awk时,一定要记得动手去实践,只有在实践中才能发现问题,以下就我在学习中和实践中的经验,总结一下RS,ORS,FS,OFS的区别和联系。 一,RS与ORS 1,RS是记录分隔符,默认的分隔符是\n,具体用法看下 查看复制打印? [root@krlcgcms01 mytest]# cat test1     //测试文.........【阅读全文】

阅读(1020) | 评论(0) | 转发(0)

发布时间:2014-01-15 15:27:10

1:数据库备份点击(此处)折叠或打开#! /bin/bashuser="root"passwd="UGN321"db1="xj_character_test"db2="xj_auth"dir="/data/backup"time="$(date +"%H-%M")"day="$(date +"%Y-%m-%d")".........【阅读全文】

阅读(757) | 评论(0) | 转发(0)

发布时间:2014-01-15 15:25:55

1:监听某一进程是否正常点击(此处)折叠或打开#!/bin/bashulimit -c unlimitedcd /data/xj3/GameServerif !(netstat -ntlp | grep 9999| grep -v grep)thenecho -n "GameServer has been down at ">>/data/xj3/GameServer.........【阅读全文】

阅读(698) | 评论(0) | 转发(0)

发布时间:2014-01-15 15:24:45

点击(此处)折叠或打开#!/bin/bash#set -x#grant all privileges on *.* to 'repair'@'%' identified by 'repair';#When found synchronous appear unable to synchronization time "will be automatically extracted the main library file number, a.........【阅读全文】

阅读(693) | 评论(0) | 转发(0)

发布时间:2014-01-15 15:23:54

点击(此处)折叠或打开#!/bin/bash#要备份的数据库名,多个数据库用空格分开databases=(3gchuya120 3gerbihou chuya120 erbihou guahao guahao_erbihou jzx365 tsh114)#databases=(3gchuya120 3gerbihou)date_str=`date +%y%m%d`.........【阅读全文】

阅读(854) | 评论(0) | 转发(0)

发布时间:2014-01-15 15:22:14

为避免邮件服务器管理人员每周查看黑名单,并提交黑名单申诉,如果服务器数量较多则非常麻烦。IP列表、提交信息请自定义。中国反垃圾邮件联盟申诉网址: http://www.anti-spam.org.cn/Rbl/Getout/ShowForms?IP=&YES=on&btn=提交此网站不需要输入验证码,故方便脚本提交申诉python版本点击(此处)折叠或打开.........【阅读全文】

阅读(1227) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册