<?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>搜尋檔案內容 &#8211; 21點情報網</title>
	<atom:link href="https://ailog.tw/lifelog/tag/%e6%90%9c%e5%b0%8b%e6%aa%94%e6%a1%88%e5%85%a7%e5%ae%b9/feed/" rel="self" type="application/rss+xml" />
	<link>https://ailog.tw/lifelog</link>
	<description></description>
	<lastBuildDate>Fri, 02 Oct 2026 03:06:10 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>
	<item>
		<title>在Linux搜尋包含特定字串內容的檔案</title>
		<link>https://ailog.tw/lifelog/2026/10/02/linux-find/</link>
		
		<dc:creator><![CDATA[blackjack]]></dc:creator>
		<pubDate>Fri, 02 Oct 2026 03:06:10 +0000</pubDate>
				<category><![CDATA[3C資訊]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[字串]]></category>
		<category><![CDATA[搜尋檔案內容]]></category>
		<guid isPermaLink="false">https://ailog.tw/lifelog/?p=18225</guid>

					<description><![CDATA[在Windows作業系統中搜尋檔案中的字串相當的容易，但在Linux作業系統中該如何進行呢? 一起來了解如何在 &#8230; <p class="link-more"><a href="https://ailog.tw/lifelog/2026/10/02/linux-find/" class="more-link">閱讀全文<span class="screen-reader-text">〈在Linux搜尋包含特定字串內容的檔案〉</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>在Windows作業系統中搜尋檔案中的字串相當的容易，但在Linux作業系統中該如何進行呢?<br />
一起來了解如何在Linux作業系統中搜尋包含設定字串的檔案吧!</p>
<p><span id="more-18225"></span></p>
<p><strong><span style="color: #0000ff;">一、先確認要搜尋的「字串」與「路徑」</span></strong><br />
本範例要搜尋的字串為「jif」，要搜尋的路徑為「/tmp/」，要搜尋的檔案類型「*」(代表搜尋任何檔案類型)</p>
<p><strong><span style="color: #0000ff;">二、進行檔案搜尋</span></strong></p>
<pre>grep -Rni --include="*" "jif" /tmp/</pre>
<p>搜尋的結果<br />
<img fetchpriority="high" decoding="async" class="alignnone wp-image-18226 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2026/10/linux-find.png" alt="" width="621" height="119" srcset="https://ailog.tw/lifelog/wp-content/uploads/2026/10/linux-find.png 621w, https://ailog.tw/lifelog/wp-content/uploads/2026/10/linux-find-300x57.png 300w" sizes="(max-width: 621px) 100vw, 621px" /></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
