<?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>#zsh posts — Ben Crowder</title>
    <link>https://bencrowder.net/blog/tag/zsh/</link>
    <atom:link href="https://bencrowder.net/blog/tag/zsh/feed/" rel="self" />
    <description>Feed for blog posts tagged with #zsh.</description>
    <lastBuildDate>Thu, 12 Mar 2026 19:45:41 GMT</lastBuildDate>
    <language>en-US</language>
    <generator>https://bencrowder.net/</generator>

    <item>
      <title>Some small scripts</title>
      <link>https://bencrowder.net/blog/2013/some-small-scripts/</link>
      <guid isPermaLink="true">https://bencrowder.net/blog/2013/some-small-scripts/</guid>
      <pubDate>Tue, 05 Mar 2013 12:00:00 GMT</pubDate>
      <dc:creator><![CDATA[Ben Crowder]]></dc:creator>
      <description><![CDATA[<p>Migrating to Day One has resurrected my efforts to scan and transcribe my older paper journals. As I’ve been doing this, I’ve run into the need for a couple small <a href="https://bencrowder.net/coding/scripts/">shell scripts</a> to automate things.</p>
<p>On several of these journals I’m scanning the full two-page spread because the whole journal fits on the scanner platen, which means splitting the resulting image out into two (one for each page). <a href="https://gist.github.com/bencrowder/5091137">Splitimage</a> uses ImageMagick to do that nicely. There’s some overlap, but for a fully automated solution it’s not bad, and it saves me a lot of time cropping.</p>
<p>I prefer taking these split images and renaming them sequentially using something more meaningful (“journal-2009.005.jpg” rather than “IMG_0034.JPG”, for example). I used to do this with OS X’s Automator tool, and it works quite well, but I wanted a quick command-line tool to speed things up. Enter <a href="https://gist.github.com/bencrowder/5091048">dub</a>, a zsh script that simplifies the batch renaming process. Now I can just type:</p>
<pre><code>dub journal-2009.X.jpg *.JPG
</code></pre>
<p>And then it’s just a matter of dumping them into Unbindery and transcribing them.</p><hr class="feed-extra" style="margin-top: 48pt;" /><p class="feed-extra feed-mail"><a href="mailto:ben.crowder@gmail.com?subject=Re%3A%20Some small scripts">Reply via email</a></p>]]></description>
    </item>
    
  </channel>
</rss>
