<?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:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>钟志胜的个人网站 - MacOS</title>
<link>https://zzs.tdcktz.com/index.php/tag/MacOS/</link>
<atom:link href="https://zzs.tdcktz.com/index.php/feed/tag/MacOS/" rel="self" type="application/rss+xml" />
<language>zh-CN</language>
<description></description>
<lastBuildDate>Fri, 29 Aug 2025 11:13:00 +0000</lastBuildDate>
<pubDate>Fri, 29 Aug 2025 11:13:00 +0000</pubDate>
<item>
<title>LuLu is the free open-source macOS firewall</title>
<link>https://zzs.tdcktz.com/index.php/archives/177/</link>
<guid>https://zzs.tdcktz.com/index.php/archives/177/</guid>
<pubDate>Fri, 29 Aug 2025 11:13:00 +0000</pubDate>
<dc:creator>钟志胜</dc:creator>
<category><![CDATA[技术相关]]></category>
<description><![CDATA[LuLu is the free open-source macOS firewallhttps://objective-see.org/products/lulu.html]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p><img src="https://objective-see.org/images/LL/welcome.png" alt="请输入图片描述" title="请输入图片描述"></p><p>LuLu is the free open-source macOS firewall</p><p><a href="https://objective-see.org/products/lulu.html">https://objective-see.org/products/lulu.html</a></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://zzs.tdcktz.com/index.php/archives/177/#comments</comments>
<wfw:commentRss>https://zzs.tdcktz.com/index.php/feed/tag/MacOS/archives/177/</wfw:commentRss>
</item>
<item>
<title>在MacOS中，批量删除多个段落之间多余空行的简单办法</title>
<link>https://zzs.tdcktz.com/index.php/archives/42/</link>
<guid>https://zzs.tdcktz.com/index.php/archives/42/</guid>
<pubDate>Tue, 22 Apr 2025 23:31:51 +0000</pubDate>
<dc:creator>钟志胜</dc:creator>
<category><![CDATA[技术相关]]></category>
<description><![CDATA[在 macOS 自带的文本编辑器（如 TextEdit）中，可以通过以下方法批量删除多个段落之间的多余空行：方法一：使用 查找和替换 功能（基础版）打开文本文件，按快捷键 Command + F...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>在 macOS 自带的文本编辑器（如 TextEdit）中，可以通过以下方法批量删除多个段落之间的多余空行：</p><hr><p>方法一：使用 查找和替换 功能（基础版）</p><ol><li>打开文本文件，按快捷键 Command + F 调出查找窗口。</li><li><p>输入连续换行符：</p><ul><li>在「查找」框中输入 <code>\n\n</code>（表示两个连续换行符）。</li><li>在「替换为」框中输入 <code>\n</code>（单个换行符）。</li></ul></li><li>点击 Replace All，重复操作直到无法替换为止（适用于少量空行）。</li></ol><hr><p>方法二：使用 终端命令（高效批量处理）</p><ol><li>打开 终端（Terminal）。</li><li><p>输入以下命令（以 <code>sed</code> 工具为例）：</p><pre><code class="lang-bash">sed -i &#039;&#039; &#039;/^$/d&#039; 你的文件名.txt</code></pre><ul><li>这会直接删除文件中所有完全空白的行。</li><li>若需保留段落间 1 个空行，改用：</li></ul></li></ol><pre><code class="lang-bash">sed -i &#039;&#039; &#039;/^$/N;/^\n$/D&#039; 你的文件名.txt
``` ```

---

方法三：使用第三方编辑器（推荐复杂场景）
若空行中包含空格或制表符，或需更灵活处理，推荐安装 Sublime Text 或 BBEdit：
1. 打开文件，按 Command + Option + F 调出正则替换功能。
2. 输入正则表达式：
   - 查找内容：`\n{2,}`（匹配连续 2 个及以上换行符）。
   - 替换为：`\n`（保留 1 个换行符）。
3. 点击 Replace All 完成批量删除。

---

注意事项
- TextEdit 的局限性：原生编辑器不支持复杂正则表达式，若空行数量多且不规则，建议优先使用终端或第三方工具。
- 备份文件：操作前建议复制文件副本，避免误删内容。
</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://zzs.tdcktz.com/index.php/archives/42/#comments</comments>
<wfw:commentRss>https://zzs.tdcktz.com/index.php/feed/tag/MacOS/archives/42/</wfw:commentRss>
</item>
</channel>
</rss>