<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>征程无限 &#187; shell编程</title>
	<atom:link href="http://www.chengyongxu.com/blog/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chengyongxu.com/blog</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 07:29:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://www.chengyongxu.com/blog/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>Bash Shell中逗号操作符示例</title>
		<link>http://www.chengyongxu.com/blog/bash%e4%b8%ad%e9%80%97%e5%8f%b7%e6%93%8d%e4%bd%9c%e7%ac%a6%e7%a4%ba%e4%be%8b/</link>
		<comments>http://www.chengyongxu.com/blog/bash%e4%b8%ad%e9%80%97%e5%8f%b7%e6%93%8d%e4%bd%9c%e7%ac%a6%e7%a4%ba%e4%be%8b/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 07:29:14 +0000</pubDate>
		<dc:creator>楚霏</dc:creator>
				<category><![CDATA[shell编程]]></category>

		<guid isPermaLink="false">http://www.chengyongxu.com/blog/?p=777</guid>
		<description><![CDATA[#!/bin/bash # The comma operator links together a series of arithmetic operations. #+ All are evaluated, but only the last one is returned. # Set "a = 9" and "t2 = 15 / 3" let "t2 = ((a = 9, 15 / 3))" echo $t2.$a # The comma operator can also concatenate strings. for file [...]]]></description>
		<wfw:commentRss>http://www.chengyongxu.com/blog/bash%e4%b8%ad%e9%80%97%e5%8f%b7%e6%93%8d%e4%bd%9c%e7%ac%a6%e7%a4%ba%e4%be%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VsFTPD自动安装脚本</title>
		<link>http://www.chengyongxu.com/blog/vsftpd%e8%87%aa%e5%8a%a8%e5%ae%89%e8%a3%85%e8%84%9a%e6%9c%ac/</link>
		<comments>http://www.chengyongxu.com/blog/vsftpd%e8%87%aa%e5%8a%a8%e5%ae%89%e8%a3%85%e8%84%9a%e6%9c%ac/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 10:26:20 +0000</pubDate>
		<dc:creator>楚霏</dc:creator>
				<category><![CDATA[FTP服务器]]></category>
		<category><![CDATA[shell编程]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vsftp]]></category>

		<guid isPermaLink="false">http://www.chengyongxu.com/blog/?p=629</guid>
		<description><![CDATA[虽然平时配置一个ftp要不了5分钟，但写完脚本才发现，浪费的时间实现太多了，脚本一般半分钟就装好了。 本脚本在CentOS 和 Redhat Enterprise环境中测试通过。有空再测其它发行版。 脚本中用到了以下几个东西： shell检查linux发行版； shell向文本写东西； shell生成随机密码； sed输出匹配行的下一行； …… 本文采用的是虚拟用户方式 具体内容如下： #----------------------------引用文字-开始---------------------------- #!/bin/bash # VsFTPD Virtual User Configuration # Author: 楚霏 # Company: chengyongxu.com # Create Date: 2010-07-20 # Last Update Date: 2010-07-20 17:36 ################################################# # # 在这一部分定义相关变量 # ################################################# YUM_INSTALL_LIST="vsftpd db4 db4-tcl db4-utils" APT_INSTALL_LIST="vsftpd db4.6-util" # 通常只需要编辑以下两个变量 FTP_USER=www FTP_HOME=/www VSFTPD_BASE_DIR=/etc/vsftpd ################################################# # [...]]]></description>
		<wfw:commentRss>http://www.chengyongxu.com/blog/vsftpd%e8%87%aa%e5%8a%a8%e5%ae%89%e8%a3%85%e8%84%9a%e6%9c%ac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Svn用户管理脚本</title>
		<link>http://www.chengyongxu.com/blog/svn%e7%94%a8%e6%88%b7%e7%ae%a1%e7%90%86%e8%84%9a%e6%9c%ac/</link>
		<comments>http://www.chengyongxu.com/blog/svn%e7%94%a8%e6%88%b7%e7%ae%a1%e7%90%86%e8%84%9a%e6%9c%ac/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 07:45:24 +0000</pubDate>
		<dc:creator>楚霏</dc:creator>
				<category><![CDATA[shell编程]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.chengyongxu.com/blog/?p=438</guid>
		<description><![CDATA[一个工作需要重复5次以上,那就写个脚本吧. 一.删除一个svn用户 #----------------------------引用文字-开始---------------------------- #!/bin/bash #Delect a svn user #Author:楚霏 echo -n " Please enter the user name whom you want to delete : " read NAME #把下边这行的 "/home/svnroot/" 改为你的svn根目录 SVNROOT=/home/svnroot #delect the name in authz for i in `ls $SVNROOT/repository/`; do sed -i "s/$NAME\,//g" "$SVNROOT/repository/${i}/conf/authz"; done for i in `ls $SVNROOT/repository/`; do sed -i "s/$NAME//g" [...]]]></description>
		<wfw:commentRss>http://www.chengyongxu.com/blog/svn%e7%94%a8%e6%88%b7%e7%ae%a1%e7%90%86%e8%84%9a%e6%9c%ac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>date命令详解与示例</title>
		<link>http://www.chengyongxu.com/blog/date%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3%e4%b8%8e%e7%a4%ba%e4%be%8b/</link>
		<comments>http://www.chengyongxu.com/blog/date%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3%e4%b8%8e%e7%a4%ba%e4%be%8b/#comments</comments>
		<pubDate>Wed, 13 May 2009 01:41:12 +0000</pubDate>
		<dc:creator>楚霏</dc:creator>
				<category><![CDATA[桌面应用]]></category>
		<category><![CDATA[date命令]]></category>
		<category><![CDATA[shell编程]]></category>

		<guid isPermaLink="false">http://www.chengyongxu.com/blog/?p=315</guid>
		<description><![CDATA[昨天需要写一个shell脚本，第一步是先获得昨天是几号。 然后我就写了近40行，又是判断月份，又是判断闰年，用了近两个小时。 猛的发现，date命令加一个参数就实现了 date +%d -d &#8216;-1 day&#8217; 苍天呀！这就是无知的代价！ 索性又写篇博客介绍一下date命令 date用途: 用来显示或设定系统的日期与时间 使用方法: date [参数] [+显示格式] 参数: -d datestr : 显示 datestr 中所设定的时间 (非系统时间) --help : 显示辅助讯息 -s datestr : 将系统时间设为 datestr 中所设定的时间 -u : 显示目前的格林威治时间 --version : 显示版本编号 显示格式: 方面，使用者可以设定欲显示的格式，格式设定为一个加号后接数个标记，其中可用的标记列表如下 : ########################################### 时间方面 : %H : 小时,24小时制(00..23) %k : 小时,24小时制(0..23) %I : 小时,12小时制(01..12) %l [...]]]></description>
		<wfw:commentRss>http://www.chengyongxu.com/blog/date%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3%e4%b8%8e%e7%a4%ba%e4%be%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chinaitlab 8cd linux教程笔记_SHELL编程部分</title>
		<link>http://www.chengyongxu.com/blog/chinaitlab-8cd-linux%e6%95%99%e7%a8%8b%e7%ac%94%e8%ae%b0_shell%e7%bc%96%e7%a8%8b%e9%83%a8%e5%88%86/</link>
		<comments>http://www.chengyongxu.com/blog/chinaitlab-8cd-linux%e6%95%99%e7%a8%8b%e7%ac%94%e8%ae%b0_shell%e7%bc%96%e7%a8%8b%e9%83%a8%e5%88%86/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 05:48:08 +0000</pubDate>
		<dc:creator>楚霏</dc:creator>
				<category><![CDATA[shell编程]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[Chinaitlab]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[变量]]></category>
		<category><![CDATA[循环]]></category>
		<category><![CDATA[控制流]]></category>
		<category><![CDATA[正则表达式]]></category>
		<category><![CDATA[运算符]]></category>
		<category><![CDATA[运行级别]]></category>
		<category><![CDATA[重定向]]></category>

		<guid isPermaLink="false">http://www.chengyongxu.com/blog/?p=173</guid>
		<description><![CDATA[############################ #Chinaitlab 8cd linux教程笔记_Shell编程部分# ############################ &#60;1&#62;shell简介 命令替换 myfile的内容 parm findfile #ls `cat myfile` -al shell脚本基本元素 a.#!/bin/sh b.#注释 c.变量 #用来存储信息 d.流程控制结构 管道&#124; #一个命令输出作为后一个命令的输入 重定向&#60;&#62;#与管道相关，可以改变程序运行的输入来源和输出地点 sort &#60;httpd.conf &#62;httpd.conf.new 特殊字符 双引号：用来使shell无法认出空格、制表符和其它特殊字符 单引号：用来使shell无法认出所有特殊字符 反引号：用来替换命令 反斜杠：用来使shell无认出其后的特殊字符 分 号：允许在一行放多个命令 ＆ ：命令后台执行 括 号：创建成组的命令 大括号：创建命令块 竖 杠：管道 &#60;&#62;&#38; ：表示重定向 *?{}! ：表示模式匹配 $ ：变量名的开头 # ：注释 空格 ：当做空白 换行符：当做空白 制表符：当做空白 &#60;2&#62;shell变量和运算符 2.1.1本地变量 用户现在shell生命期的脚本中使用 [...]]]></description>
		<wfw:commentRss>http://www.chengyongxu.com/blog/chinaitlab-8cd-linux%e6%95%99%e7%a8%8b%e7%ac%94%e8%ae%b0_shell%e7%bc%96%e7%a8%8b%e9%83%a8%e5%88%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql备份脚本</title>
		<link>http://www.chengyongxu.com/blog/mysql%e5%a4%87%e4%bb%bd%e8%84%9a%e6%9c%ac/</link>
		<comments>http://www.chengyongxu.com/blog/mysql%e5%a4%87%e4%bb%bd%e8%84%9a%e6%9c%ac/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 06:50:12 +0000</pubDate>
		<dc:creator>楚霏</dc:creator>
				<category><![CDATA[shell编程]]></category>
		<category><![CDATA[数据库]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[备份]]></category>
		<category><![CDATA[脚本]]></category>

		<guid isPermaLink="false">http://www.chengyongxu.com/blog/?p=160</guid>
		<description><![CDATA[#!/bin/sh ######################################### # Prim@Hosting Backup工具 # v2.0 # ValueOf.com ######################################### EMAIL=0 ######################################### # 配置区 # the backup dir BACKUP_BASE_DIR="/www/users/backup" # 备份哪些? WEB=0 EMAIL=0 DNS=0 MYSQL=1 CONTROL=1 # 测试模式? testmode=0 # 本参数如设置为1，则打包压缩/www/users/目录时候， # 将会把每个站点单独生成一个对应的tgz压缩文件 # 本参数如果为0，则/www/users/下所有站点将打包成为一个users.tar.gz的大文件 # 为了便于下载备份和解压缩备份文件，本参数默认设置为1 user_seperate=1 # 本参数如设置为1，则打包压缩/var/lib/mysql/目录时候， # 将会把每个数据库单独生成一个对应的tgz压缩文件 # 本参数如果为0，则/var/lib/mysql/目录打包成为一个mysql.tar.gz的大文件 # 本参数默认设置为0 mysql_seperate=1 # 保留多少份旧的备份？ # 即除了当前最新的这个备份之外，还保留几个备份，最少为0个，默认为1 # 如果设为0，则只保留一个备份，每次备份的时候都会把以前的备份删除 max_old_backup=7 ######################################### [...]]]></description>
		<wfw:commentRss>http://www.chengyongxu.com/blog/mysql%e5%a4%87%e4%bb%bd%e8%84%9a%e6%9c%ac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
