<?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.liguosong.com/tag/shell-%e5%8f%8d%e5%bc%95%e5%8f%b7/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.liguosong.com</link>
	<description></description>
	<lastBuildDate>Tue, 08 May 2018 01:02:19 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.2</generator>
		<item>
		<title>Shell 反引号 `</title>
		<link>http://www.liguosong.com/2014/01/04/shell-%e5%8f%8d%e5%bc%95%e5%8f%b7/</link>
		<comments>http://www.liguosong.com/2014/01/04/shell-%e5%8f%8d%e5%bc%95%e5%8f%b7/#comments</comments>
		<pubDate>Sat, 04 Jan 2014 06:44:12 +0000</pubDate>
		<dc:creator>lgs</dc:creator>
				<category><![CDATA[Shell]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shell 反引号]]></category>

		<guid isPermaLink="false">http://www.liguosong.com/?p=226</guid>
		<description><![CDATA[shell脚本中的反引号“`”,这个符号通常在tab键的上面那个键，同时按住shift输入。在shell中反引 [...]]]></description>
				<content:encoded><![CDATA[<p>shell脚本中的反引号“`”,这个符号通常在tab键的上面那个键，同时按住shift输入。在shell中反引号，可以讲命令的输出赋给变量。在shell编程中，很多时候，shell 命令的输出需要作为下面命令的参数。那这个反引号就会排上用场了。<br />
这个例子很简单，就是按照年月日，创建文件夹。<span id="more-226"></span>代码如下：</p>
<pre class="brush:bash">#!/bin/sh
DATE=`date +%Y%m%d`
mkdir $DATE</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liguosong.com/2014/01/04/shell-%e5%8f%8d%e5%bc%95%e5%8f%b7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
