<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>计科 on MEMEX</title>
    <link>https://memex.keinmal.top/garden/cs/</link>
    <description>Recent content in 计科 on MEMEX</description>
    <generator>Hugo --0.164.0</generator>
    <language>zh-cn</language><managingEditor>wyz2016zxc@outlook.com(Hiraeth)</managingEditor><webMaster>wyz2016zxc@outlook.com(Hiraeth)</webMaster><atom:link href="https://memex.keinmal.top/garden/cs/index.xml" rel="self" type="application/rss+xml" /><item>
      <title>Linux 开机及引导过程</title>
      <link>https://memex.keinmal.top/garden/cs/startup/</link>
      <pubDate>Sat, 05 Sep 2026 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://memex.keinmal.top/garden/cs/startup/</guid>
      <description>uefi, grub 等</description></item><item>
      <title>Linux的文件系统</title>
      <link>https://memex.keinmal.top/garden/cs/filesystem/</link>
      <pubDate>Wed, 26 Aug 2026 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://memex.keinmal.top/garden/cs/filesystem/</guid>
      <description>&lt;h1 id=&#34;linux的文件系统&#34;&gt;
  &lt;a class=&#34;anchor inpage&#34; href=&#34;#linux%e7%9a%84%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f&#34;&gt;#&lt;/a&gt;Linux的文件系统&lt;/h1&gt;
&lt;h2 id=&#34;分类&#34;&gt;
  &lt;a class=&#34;anchor inpage&#34; href=&#34;#%e5%88%86%e7%b1%bb&#34;&gt;##&lt;/a&gt;分类&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;ext4&lt;/li&gt;
&lt;li&gt;btrfs&lt;/li&gt;
&lt;li&gt;ntfs&lt;/li&gt;
&lt;li&gt;exfat&lt;/li&gt;
&lt;li&gt;fat32&lt;/li&gt;
&lt;li&gt;zfs&lt;/li&gt;
&lt;li&gt;xfs&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;权限系统&#34;&gt;
  &lt;a class=&#34;anchor inpage&#34; href=&#34;#%e6%9d%83%e9%99%90%e7%b3%bb%e7%bb%9f&#34;&gt;##&lt;/a&gt;权限系统&lt;/h2&gt;
&lt;h2 id=&#34;attr&#34;&gt;
  &lt;a class=&#34;anchor inpage&#34; href=&#34;#attr&#34;&gt;##&lt;/a&gt;attr&lt;/h2&gt;
&lt;h2 id=&#34;btrfs&#34;&gt;
  &lt;a class=&#34;anchor inpage&#34; href=&#34;#btrfs&#34;&gt;##&lt;/a&gt;btrfs&lt;/h2&gt;</description></item><item>
      <title>Archlinux 性能优化</title>
      <link>https://memex.keinmal.top/garden/cs/archlinux-enhance/</link>
      <pubDate>Wed, 26 Aug 2026 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://memex.keinmal.top/garden/cs/archlinux-enhance/</guid>
      <description>和 deepseek 对话，查 archwiki，以及实践后的记录</description></item><item>
      <title>awesome</title>
      <link>https://memex.keinmal.top/garden/cs/awesome/</link>
      <pubDate>Fri, 22 May 2026 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://memex.keinmal.top/garden/cs/awesome/</guid>
      <description>&lt;h1 id=&#34;awesome&#34;&gt;
  &lt;a class=&#34;anchor inpage&#34; href=&#34;#awesome&#34;&gt;#&lt;/a&gt;Awesome&lt;/h1&gt;
&lt;p&gt;a list of awesome, that is, awesome-
&lt;/p&gt;</description></item><item>
      <title>好用的单行命令</title>
      <link>https://memex.keinmal.top/garden/cs/one-liner/</link>
      <pubDate>Fri, 27 Mar 2026 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://memex.keinmal.top/garden/cs/one-liner/</guid>
      <description>awesome one-liner commands</description></item><item>
      <title>grub rescue</title>
      <link>https://memex.keinmal.top/garden/cs/grub-rescue/</link>
      <pubDate>Tue, 06 Jan 2026 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://memex.keinmal.top/garden/cs/grub-rescue/</guid>
      <description>在windows下搞坏grub又没有live系统，使用神秘的grub rescue启动linux</description></item><item>
      <title>git底层设计</title>
      <link>https://memex.keinmal.top/garden/cs/git-base/</link>
      <pubDate>Wed, 17 Dec 2025 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://memex.keinmal.top/garden/cs/git-base/</guid>
      <description>了解了一下git的底层实现方式，感觉很厉害，记录一下</description></item><item>
      <title>niri</title>
      <link>https://memex.keinmal.top/garden/cs/niri/</link>
      <pubDate>Tue, 02 Dec 2025 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://memex.keinmal.top/garden/cs/niri/</guid>
      <description>wayland下paper scroll 的 wm</description></item><item>
      <title>hugo</title>
      <link>https://memex.keinmal.top/garden/cs/hugo/</link>
      <pubDate>Tue, 02 Dec 2025 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://memex.keinmal.top/garden/cs/hugo/</guid>
      <description>自制hugo主题后做一些记录</description></item><item>
      <title>一些sh脚本</title>
      <link>https://memex.keinmal.top/garden/cs/scripts-example/</link>
      <pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://memex.keinmal.top/garden/cs/scripts-example/</guid>
      <description>&lt;h1 id=&#34;scripts-example&#34;&gt;
  &lt;a class=&#34;anchor inpage&#34; href=&#34;#scripts-example&#34;&gt;#&lt;/a&gt;scripts example&lt;/h1&gt;
&lt;details open&gt;
    &lt;summary&gt;TEXT&lt;/summary&gt;&lt;pre
        class=&#34;codeblock&#34;
      &gt;&lt;code class=&#34;language-&#34; data-lang=&#34;&#34;&gt;find . -name &amp;#34;*.md&amp;#34; -type f -exec grep -lE &amp;#34;Finished&amp;#34; {} &amp;#43; | while read file; do
  if ! grep -q &amp;#34;2025-05-31&amp;#34; &amp;#34;$file&amp;#34;; then
    number=$(awk &amp;#39;/^pages: [0-9]&amp;#43;/ {print $2}&amp;#39; &amp;#34;$file&amp;#34;)
    if [ -n &amp;#34;$number&amp;#34; ]; then
      sed -i &amp;#34;/Finished/i\\- 2025-05-31: $number&amp;#34; &amp;#34;$file&amp;#34;
      echo &amp;#34;已处理: $file - 插入: - 2025-05-31: $number&amp;#34;
    else
      echo &amp;#34;跳过: $file (未找到pages数字或有效日期)&amp;#34;
    fi
  else
    echo &amp;#34;排除: $file (包含 2025-05-31)&amp;#34;
  fi
done&lt;/code&gt;&lt;button type=&#34;button&#34; class=&#34;copybtn&#34;&gt;copy&lt;/button&gt;&lt;/pre&gt;&lt;/details&gt;&lt;details open&gt;
    &lt;summary&gt;TEXT&lt;/summary&gt;&lt;pre
        class=&#34;codeblock&#34;
      &gt;&lt;code class=&#34;language-&#34; data-lang=&#34;&#34;&gt;# 创建备份和日志
backup_dir=&amp;#34;backup_$(date &amp;#43;%Y%m%d)&amp;#34;
mkdir -p &amp;#34;$backup_dir&amp;#34;
log_file=&amp;#34;replace_log.txt&amp;#34;

echo &amp;#34;开始替换操作 $(date)&amp;#34; &amp;gt; &amp;#34;$log_file&amp;#34;

find . -name &amp;#34;*.md&amp;#34; -type f | while read file; do
    # 检查文件是否包含目标字符串
    if grep -q &amp;#34;- 2025-06-01: Finished&amp;#34; &amp;#34;$file&amp;#34;; then
        # 创建备份
        cp &amp;#34;$file&amp;#34; &amp;#34;$backup_dir/$(basename &amp;#34;$file&amp;#34;)&amp;#34;
        # 执行替换
        sed -i &amp;#39;s/- 2025-06-01: Finished/- 2025-05-31: Finished/g&amp;#39; &amp;#34;$file&amp;#34;
        # 记录日志
        echo &amp;#34;已修改: $file&amp;#34; &amp;gt;&amp;gt; &amp;#34;$log_file&amp;#34;
        # 显示变更
        echo &amp;#34;=== $file 修改内容 ===&amp;#34;
        diff &amp;#34;$backup_dir/$(basename &amp;#34;$file&amp;#34;)&amp;#34; &amp;#34;$file&amp;#34; || true
    else
        echo &amp;#34;无修改: $file&amp;#34; &amp;gt;&amp;gt; &amp;#34;$log_file&amp;#34;
    fi
done

echo &amp;#34;操作完成，备份在 $backup_dir，日志见 $log_file&amp;#34;&lt;/code&gt;&lt;button type=&#34;button&#34; class=&#34;copybtn&#34;&gt;copy&lt;/button&gt;&lt;/pre&gt;&lt;/details&gt;&lt;details open&gt;
    &lt;summary&gt;TEXT&lt;/summary&gt;&lt;pre
        class=&#34;codeblock&#34;
      &gt;&lt;code class=&#34;language-&#34; data-lang=&#34;&#34;&gt;find . -name &amp;#34;*.md&amp;#34; -type f -exec grep -l &amp;#34;lists: book&amp;#34; {} &amp;#43; | \
while read file; do
    if ! grep -q &amp;#34;Finished&amp;#34; &amp;#34;$file&amp;#34;; then
        # 确保文件末尾有空行（避免追加内容粘连）
        [ -n &amp;#34;$(tail -c 1 &amp;#34;$file&amp;#34;)&amp;#34; ] &amp;amp;&amp;amp; echo &amp;gt;&amp;gt; &amp;#34;$file&amp;#34;
        # 追加内容
        echo &amp;#34;- 2025-06-01: Finished&amp;#34; &amp;gt;&amp;gt; &amp;#34;$file&amp;#34;
        echo &amp;#34;已处理: $file&amp;#34;
    else
        echo &amp;#34;跳过: $file (已包含 Finished)&amp;#34;
    fi
done&lt;/code&gt;&lt;button type=&#34;button&#34; class=&#34;copybtn&#34;&gt;copy&lt;/button&gt;&lt;/pre&gt;&lt;/details&gt;&lt;details open&gt;
    &lt;summary&gt;TEXT&lt;/summary&gt;&lt;pre
        class=&#34;codeblock&#34;
      &gt;&lt;code class=&#34;language-&#34; data-lang=&#34;&#34;&gt;find . -name &amp;#34;*.md&amp;#34; -type f -exec grep -L &amp;#34;Finished&amp;#34; {} &amp;#43; | while read file; do
    awk &amp;#39;BEGIN {done=0} /^---/ &amp;amp;&amp;amp; !done {print; print &amp;#34;- 2025-06-01: Finished&amp;#34;; done=1; next} 1&amp;#39; &amp;#34;$file&amp;#34; &amp;gt; tmp &amp;amp;&amp;amp; mv tmp &amp;#34;$file&amp;#34;
done&lt;/code&gt;&lt;button type=&#34;button&#34; class=&#34;copybtn&#34;&gt;copy&lt;/button&gt;&lt;/pre&gt;&lt;/details&gt;</description></item></channel>
</rss>
