<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>gwh.lol</title>
    <link>https://main.gwhlol.pages.dev/</link>
    <description>Recent content on gwh.lol</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 01 Mar 2026 00:41:38 -0600</lastBuildDate>
    <atom:link href="https://main.gwhlol.pages.dev/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Csplit</title>
      <link>https://main.gwhlol.pages.dev/posts/csplit/</link>
      <pubDate>Sun, 01 Mar 2026 00:41:38 -0600</pubDate>
      <guid>https://main.gwhlol.pages.dev/posts/csplit/</guid>
      <description>&lt;h1 id=&#34;csplit&#34;&gt;csplit&lt;/h1&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;csplit - split a file into sections determined by context lines&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;introduction&lt;/h2&gt;&#xA;&lt;p&gt;Sometimes you have a file of certficiates that you want to split into component files.&lt;/p&gt;&#xA;&lt;p&gt;The source file looks like this:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;-----BEGIN CERTIFICATE-----&#xA;MIIGXzCCBeWgAwIBAgISBrIDKzxu2DUBARSOuwi/l1h/MAoGCCqGSM49BAMDMDIx&#xA;...&#xA;-----END CERTIFICATE-----&#xA;-----BEGIN CERTIFICATE-----&#xA;MIIGXzCCBeWgAwIBAgISBrIDKzxu2DUBARSOuwi/l1h/MAoGCCqGSM49BAMDMDIx&#xA;...&#xA;-----END CERTIFICATE-----&#xA;-----BEGIN CERTIFICATE-----&#xA;MIIGXzCCBeWgAwIBAgISBrIDKzxu2DUBARSOuwi/l1h/MAoGCCqGSM49BAMDMDIx&#xA;...&#xA;-----END CERTIFICATE-----&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;We can split on the first line: &lt;code&gt;-----BEGIN CERTIFICATE-----&lt;/code&gt;. Every time we encounter that line, split into a new file.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
