<?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; dos</title>
	<atom:link href="http://www.sadeq.ir/tags/dos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sadeq.ir</link>
	<description>نوشته‌های صادق و مریم</description>
	<lastBuildDate>Mon, 06 Sep 2010 18:41:39 +0000</lastBuildDate>
	<language>fa</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>درختواره در لینوکس</title>
		<link>http://www.sadeq.ir/1388/11/119/tree-in-linux/</link>
		<comments>http://www.sadeq.ir/1388/11/119/tree-in-linux/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 02:30:11 +0000</pubDate>
		<dc:creator>صادق</dc:creator>
				<category><![CDATA[رایانه]]></category>
		<category><![CDATA[گنولینوکس]]></category>
		<category><![CDATA[dos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tree]]></category>

		<guid isPermaLink="false">http://www.sadeq.ir/?p=119</guid>
		<description><![CDATA[کسایی که از سیستم عامل DOS استفاده کردن می‌دونند که یه دستور داشت به نام tree. کار این دستور این بود که لیست فایل‌ها و فولدرها را به صورت درختی نمایش می داد.  توی لینوکس برای درست کردن اینجور چیزی دو راه وجود داره:
۱. استفاده از این دستور:
find . -print &#124; sed -e 's;[^/]*/;&#124;____;g;s;____&#124;; [...]]]></description>
			<content:encoded><![CDATA[<p>کسایی که از سیستم عامل DOS استفاده کردن می‌دونند که یه دستور داشت به نام tree. کار این دستور این بود که لیست فایل‌ها و فولدرها را به صورت درختی نمایش می داد.  توی لینوکس برای درست کردن اینجور چیزی دو راه وجود داره:<br />
۱. استفاده از این دستور:</p>
<pre class="brush:shell" style="direction: ltr;">find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'</pre>
<p><div id="attachment_124" class="wp-caption alignnone" style="width: 470px"><a href="http://www.sadeq.ir/wp-content/ups/2010/01/tree-command-simulate.png"><img class="size-full wp-image-124  " title="خروجی دستور شبیه‌سازی tree" src="http://www.sadeq.ir/wp-content/ups/2010/01/tree-command-simulate.png" alt="خروجی دستور شبیه‌سازی tree" width="460" height="133" /></a><p class="wp-caption-text">یک خط دستور برای ایجاد خروجی شبیه به خروجی دستور tree در dos</p></div><br />
۲. نصب بسته tree برای نصب بسته tree در توزیع‌های debian base‌ مثل ubuntu می‌توانید از این دستور استفاده کنید:</p>
<pre class="brush:shell" style="direction: ltr;">apt-get install tree</pre>
<p><div id="attachment_123" class="wp-caption alignnone" style="width: 328px"><a href="http://www.sadeq.ir/wp-content/ups/2010/01/tree-command.png"><img class="size-full wp-image-123" title="خروجی دستور tree" src="http://www.sadeq.ir/wp-content/ups/2010/01/tree-command.png" alt="" width="318" height="231" /></a><p class="wp-caption-text">خروجی دستور tree در ubuntu</p></div><br />
هر دوش به خوبی کار می‌کنه. اما من دومی را به دلیل داشتن کلی امکانات اضافی (مثلا نمایش رنگی، نمایش حجم فایل‌ها و &#8230;) ترجیح می‌دم</p>

				<div>
					<h4>1 دیدگاه برای این نوشته:</h4><ol>
						  <li><img alt='' src='http://1.gravatar.com/avatar/55a7d0cecd9f75cb6e2e3490af93e2a4?s=32&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&amp;r=G' class='avatar avatar-32 photo' height='32' width='32' /><i>پدرام:</i>
							<br />
							<small><a rel="nofollow" href="http://www.sadeq.ir/1388/11/119/tree-in-linux/comment-page-1/#comment-65">2010-Feb-09</a></small>
							جالب بود
موفق باشید
						  </li>
					  </ol>
				  </div>
			  <p><b><a target="_blank" href="http://www.sadeq.ir/wp-content/plugins/comments-on-feed/comments-template.php?id=119">ارسال نظر سریع</a></b></p>]]></content:encoded>
			<wfw:commentRss>http://www.sadeq.ir/1388/11/119/tree-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
