<?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; touch</title>
	<atom:link href="http://guogoul.com/tag/touch/feed/" rel="self" type="application/rss+xml" />
	<link>http://guogoul.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Oct 2010 00:24:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>bash编程学习-基础(3)</title>
		<link>http://guogoul.com/2008/08/25/bashshell_3/</link>
		<comments>http://guogoul.com/2008/08/25/bashshell_3/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 00:08:47 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[touch]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/08/25/bashshell_3/</guid>
		<description><![CDATA[1.算术操作符



操作符
意义




VAR++ and VAR&#8211;
变量自增和变量自减


++VAR and &#8211;VAR
变量前置加和前置减


- and +
一元减和加


! and ~
逻辑和按位取反


**
求幂


*, / and %
乘，除，求余


+ and -
加，减


&#60;&#60; and &#62;&#62;
左移和右移


&#60;=, &#62;=, &#60; and &#62;
比较操作符


== and !=
相等和不相等


&#38;
位与


^
位异或


&#124;
位或


&#38;&#38;
逻辑与


&#124;&#124;
逻辑或


expr ? expr : expr
条件赋值


=, *=, /=, %=, +=, -=, &#60;&#60;=, &#62;&#62;=, &#38;=, ^= and &#124;=
赋值


,
表达式间的分隔符



2.建立和移除别名aliasunalias,注意：别名不能被子进程继承
3.用set来设置选项显示所有的选项: set -o,注-号开启选项，+关闭选项例如： set -o noclobber: 文件不能被overwrite
4.touch用来建立一个空文件的好方法,touch主要用于改变文件改变的时间戳
5.grep: 以行为单位搜索那些包含给出模板列表的输入文件。当在一行中找到匹配，默认把行拷到标准输出grep中的正则: \&#60;表地单词的开始, \&#62;表示单词的结束grep -w匹配单词
6.字符族:使用语法:[:CLASS:]&#8220;alnum&#8221;,&#8221;alpha&#8221;,&#8221;ascii&#8221;,“blank”,&#8221;cntrl&#8221;,&#8221;digit&#8221;,&#8221;graph&#8221;,&#8221;lower&#8221;,&#8221;print&#8221;,&#8221;punct&#8221;,&#8221;space&#8221;,&#8221;upper&#8221;,&#8221;word&#8221;,&#8221;xdigit&#8221;
7.awk (分析的是每一行的输入)FS:域分割符代表内建的变量oRS:行分割符oFS:输出分割符=:赋值printf,print:输出BEGIN: 开始的定义以及输出处理END: 结束时的处理.
]]></description>
		<wfw:commentRss>http://guogoul.com/2008/08/25/bashshell_3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

