<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>《shell面试题》的评论</title>
	<atom:link href="http://www.zhangyiqun.net/115.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zhangyiqun.net/115.html</link>
	<description>让世界更美好一点儿</description>
	<lastBuildDate>Sun, 22 Jan 2012 02:18:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>admin</title>
		<link>http://www.zhangyiqun.net/115.html/comment-page-1#comment-1183</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 10 Mar 2011 07:55:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=115#comment-1183</guid>
		<description>@xlu, 我作学问最认真了，不是写的潦草，是WORDPRESS排版就这样，刚刚把代码转移了，现在看看效果</description>
		<content:encoded><![CDATA[<p>@xlu, 我作学问最认真了，不是写的潦草，是WORDPRESS排版就这样，刚刚把代码转移了，现在看看效果</p>
]]></content:encoded>
	</item>
	<item>
		<title>xlu</title>
		<link>http://www.zhangyiqun.net/115.html/comment-page-1#comment-1182</link>
		<dc:creator>xlu</dc:creator>
		<pubDate>Thu, 10 Mar 2011 07:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=115#comment-1182</guid>
		<description>usermod -G ‘awk “NR==$q {print $2}” user.list &#124; awk ‘{print $2}” ‘awk “NR==$q {print $1}” user.list &#124; awk ‘{print $1}” &amp;&gt; /dev/null
哥们你这个写得这么潦草 怎么看啊 太次了 做学问认真点</description>
		<content:encoded><![CDATA[<p>usermod -G ‘awk “NR==$q {print $2}” user.list | awk ‘{print $2}” ‘awk “NR==$q {print $1}” user.list | awk ‘{print $1}” &amp;&gt; /dev/null<br />
哥们你这个写得这么潦草 怎么看啊 太次了 做学问认真点</p>
]]></content:encoded>
	</item>
	<item>
		<title>wanjie</title>
		<link>http://www.zhangyiqun.net/115.html/comment-page-1#comment-1109</link>
		<dc:creator>wanjie</dc:creator>
		<pubDate>Thu, 13 Jan 2011 12:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=115#comment-1109</guid>
		<description>@admin, 呵呵，我知道是2个减号,提示是成功的。太奇怪了，看大家的方法都类似，似乎都成功的</description>
		<content:encoded><![CDATA[<p>@admin, 呵呵，我知道是2个减号,提示是成功的。太奇怪了，看大家的方法都类似，似乎都成功的</p>
]]></content:encoded>
	</item>
	<item>
		<title>admin</title>
		<link>http://www.zhangyiqun.net/115.html/comment-page-1#comment-1108</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 13 Jan 2011 12:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=115#comment-1108</guid>
		<description>@wanjie, 这里的代码被WORDPRESS替换了一些符号，--stdin 是两个减号 ，试试</description>
		<content:encoded><![CDATA[<p>@wanjie, 这里的代码被WORDPRESS替换了一些符号，&#8211;stdin 是两个减号 ，试试</p>
]]></content:encoded>
	</item>
	<item>
		<title>wanjie</title>
		<link>http://www.zhangyiqun.net/115.html/comment-page-1#comment-1105</link>
		<dc:creator>wanjie</dc:creator>
		<pubDate>Mon, 10 Jan 2011 13:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=115#comment-1105</guid>
		<description>请教jean,我通过这个方式echo $y &#124; passwd –stdin $i 生成的帐号提示无法登陆，手动运行passwd改了2次密码才行。什么原因。谢谢。</description>
		<content:encoded><![CDATA[<p>请教jean,我通过这个方式echo $y | passwd –stdin $i 生成的帐号提示无法登陆，手动运行passwd改了2次密码才行。什么原因。谢谢。</p>
]]></content:encoded>
	</item>
	<item>
		<title>sunmsn</title>
		<link>http://www.zhangyiqun.net/115.html/comment-page-1#comment-915</link>
		<dc:creator>sunmsn</dc:creator>
		<pubDate>Wed, 13 Oct 2010 01:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhangyiqun.cn/?p=115#comment-915</guid>
		<description>awk &#039;{print $2}&#039; user.list &#124; sed &#039;s/,/\n/g&#039; &#124; sort &#124; uniq -c&#124;sed &#039;s/[^a-zA-Z]//g&#039;
这个不用这么复杂,换成下面这段:
awk &#039;{print $2}&#039; user.list&#124;sed &#039;s/,/\n/g&#039;&#124;sort -u

for in 可换成while &lt;

添加用户那段可用下面这句:
while read user group ; do echo &quot;useradd $user -G $group&quot;; done&lt;user.list</description>
		<content:encoded><![CDATA[<p>awk &#8216;{print $2}&#8217; user.list | sed &#8216;s/,/\n/g&#8217; | sort | uniq -c|sed &#8216;s/[^a-zA-Z]//g&#8217;<br />
这个不用这么复杂,换成下面这段:<br />
awk &#8216;{print $2}&#8217; user.list|sed &#8216;s/,/\n/g&#8217;|sort -u</p>
<p>for in 可换成while &lt;</p>
<p>添加用户那段可用下面这句:<br />
while read user group ; do echo &quot;useradd $user -G $group&quot;; done&lt;user.list</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.zhangyiqun.net @ 2012-02-07 22:32:54 -->
