<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Unix on</title><link>https://dawning.ca/tags/unix/</link><description>Recent content in Unix on</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Copyright © James Snell</copyright><lastBuildDate>Fri, 14 Jul 2017 12:39:14 +0000</lastBuildDate><atom:link href="https://dawning.ca/tags/unix/index.xml" rel="self" type="application/rss+xml"/><item><title>Unix Magic Trick: Rename stuff in bulk</title><link>https://dawning.ca/posts/unix-magic-trick-rename-stuff-in-bulk/</link><pubDate>Fri, 14 Jul 2017 12:39:14 +0000</pubDate><guid>https://dawning.ca/posts/unix-magic-trick-rename-stuff-in-bulk/</guid><description>
&lt;p>Here&amp;rsquo;s a magic-trick I rock from time to time. I only graze the basic abilities of the &amp;ldquo;rename&amp;rdquo; program, but even in my basic use of it, I find it super helpful.&lt;/p>
&lt;p>In this case, I had a situation where my eBooks had been resorted from a massive flat directory in to one containing sub-dirs named with the prefix &amp;ldquo;Categories - &amp;ldquo;. I might have sorted them in another manner if I didn&amp;rsquo;t know about the rename command. When I was done sorting and thus left with my category-based directories, I then wanted to rename each dir to dump the prefix.&lt;/p></description></item><item><title>Multi-threaded tar/bzip2</title><link>https://dawning.ca/posts/pbzip2/</link><pubDate>Tue, 20 Jan 2015 15:25:03 +0000</pubDate><guid>https://dawning.ca/posts/pbzip2/</guid><description>
&lt;p>I often find myself banging my head against a wall watching tar compress with a single execution thread. &lt;a href="http://compression.ca/pbzip2/">PBZIP2 is the solution&lt;/a> to that problem.&lt;/p>
&lt;p>Here&amp;rsquo;s my few recipes for using this:&lt;/p>
&lt;blockquote>
&lt;/blockquote>
&lt;p>Compress: tar cf archive.tar.bz2 &amp;ndash;use-compress-prog=pbzip2 archive/&lt;/p>
&lt;p>Uncompress:�pbzip2 -dvc archive.tar.bz2 | tar x&lt;/p>
&lt;p>Enjoy!&lt;/p></description></item></channel></rss>