<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel rdf:about="https://zzs.tdcktz.com/index.php/feed/rss/tag/MacOS/">
<title>钟志胜的个人网站 - MacOS</title>
<link>https://zzs.tdcktz.com/index.php/tag/MacOS/</link>
<description></description>
<items>
<rdf:Seq>
<rdf:li resource="https://zzs.tdcktz.com/index.php/archives/177/"/>
<rdf:li resource="https://zzs.tdcktz.com/index.php/archives/42/"/>
</rdf:Seq>
</items>
</channel>
<item rdf:about="https://zzs.tdcktz.com/index.php/archives/177/">
<title>LuLu is the free open-source macOS firewall</title>
<link>https://zzs.tdcktz.com/index.php/archives/177/</link>
<dc:date>2025-08-29T11:13:00+00:00</dc:date>
<description>LuLu is the free open-source macOS firewallhttps://objective-see.org/products/lulu.html</description>
</item>
<item rdf:about="https://zzs.tdcktz.com/index.php/archives/42/">
<title>在MacOS中，批量删除多个段落之间多余空行的简单办法</title>
<link>https://zzs.tdcktz.com/index.php/archives/42/</link>
<dc:date>2025-04-22T23:31:51+00:00</dc:date>
<description>在 macOS 自带的文本编辑器（如 TextEdit）中，可以通过以下方法批量删除多个段落之间的多余空行：方法一：使用 查找和替换 功能（基础版）打开文本文件，按快捷键 Command + F 调出查找窗口。输入连续换行符：在「查找」框中输入 \n\n（表示两个连续换行符）。在「替换为」框中输入 \n（单个换行符）。点击 Replace All，重复操作直到无法替换为止（适用于少量空行）。方法二：使用 终端命令（高效批量处理）打开 终端（Terminal）。输入以下命令（以 sed 工具为例）：sed -i &#039;&#039; &#039;/^$/d&#039; 你的文件名.txt这会直接删除文件中所有完全空白的行。若需保留段落间 1 个空行，改用：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 的局限性：原生编辑器不支持复杂正则表达式，若空行数量多且不规则，建议优先使用终端或第三方工具。
- 备份文件：操作前建议复制文件副本，避免误删内容。
</description>
</item>
</rdf:RDF>