<?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>The Letter D</title>
	<atom:link href="http://www.theletterd.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theletterd.co.uk</link>
	<description>It&#039;s a damn good letter.</description>
	<lastBuildDate>Sun, 22 Jan 2012 00:00:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Horoscopic Bollocks</title>
		<link>http://www.theletterd.co.uk/2012/01/horoscopic-bollocks/</link>
		<comments>http://www.theletterd.co.uk/2012/01/horoscopic-bollocks/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 00:00:56 +0000</pubDate>
		<dc:creator>theletterd</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.theletterd.co.uk/?p=304</guid>
		<description><![CDATA[Welp. I guess I&#8217;m done working on this thing. http://www.horoscopicbollocks.com Now, to get back to work on that OTHER thing I was working on before I got distracted by this thing. Jebus.]]></description>
			<content:encoded><![CDATA[<p>Welp. I guess I&#8217;m done working on this thing.<br />
<a href="http:/www.horoscopicbollocks.com" title="Horoscopic Bollocks">http://www.horoscopicbollocks.com<br />
</a></p>
<p>Now, to get back to work on that OTHER thing I was working on before I got distracted by this thing.</p>
<p>Jebus.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theletterd.co.uk/2012/01/horoscopic-bollocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Greatest Thing I Own</title>
		<link>http://www.theletterd.co.uk/2011/10/the-greatest-thing-i-own/</link>
		<comments>http://www.theletterd.co.uk/2011/10/the-greatest-thing-i-own/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 04:11:52 +0000</pubDate>
		<dc:creator>theletterd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.theletterd.co.uk/?p=295</guid>
		<description><![CDATA[&#160; Columbo has always been a hero of mine, and the sad death of Peter Falk at the age of 83 left me hugely upset. With very little deliberation a few weeks ago, I decided I needed to have some tangible memento of him. Pretty much as far back as I can remember, I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p style="text-align: center"><a href="http://www.theletterd.co.uk/wp-content/uploads/2011/10/DSC_0658_small.jpg"><img class="aligncenter size-full wp-image-296" src="http://www.theletterd.co.uk/wp-content/uploads/2011/10/DSC_0658_small.jpg" alt="Columbo" width="738" height="491" /></a>
</p>
<p>Columbo has always been a hero of mine, and the sad death of Peter Falk at the age of 83 left me hugely upset. With very little deliberation a few weeks ago, I decided I needed to have some tangible memento of him. Pretty much as far back as I can remember, I wanted to be Columbo. He showed that you could be a hero without violence &#8211; sometimes all you needed was a brain.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theletterd.co.uk/2011/10/the-greatest-thing-i-own/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello. I&#8217;m British.</title>
		<link>http://www.theletterd.co.uk/2011/04/hello-im-british/</link>
		<comments>http://www.theletterd.co.uk/2011/04/hello-im-british/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 01:49:34 +0000</pubDate>
		<dc:creator>theletterd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[british]]></category>
		<category><![CDATA[presentation]]></category>

		<guid isPermaLink="false">http://www.theletterd.co.uk/?p=272</guid>
		<description><![CDATA[So a good few weeks ago at work I gave a learning group on &#8220;British Stuff&#8221; &#8211; broken down into some general British trivia, some of the differences I&#8217;ve encountered over what&#8217;s called what, the history of the english language, and then a short introduction to Cockney Rhyming slang. I finally got around to getting [...]]]></description>
			<content:encoded><![CDATA[<p>So a good few weeks ago at work I gave a learning group on &#8220;British Stuff&#8221; &#8211; broken down into some general British trivia, some of the differences I&#8217;ve encountered over what&#8217;s called what, the history of the english language, and then a short introduction to Cockney Rhyming slang.</p>
<p>I finally got around to getting the videos, so here they are!<br />
If you hit play on both at the same time, you should be good to go &#8211; either that, or go <a href="http://bit.ly/gUF268">here </a> and let youtube doubler take care of  (basically) everything for you.</p>
<p><object width="695" height="416"><param name="movie" value="http://www.youtube.com/v/soJQ2726VmQ?version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/soJQ2726VmQ?version=3" type="application/x-shockwave-flash" width="695" height="416" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object width="695" height="416"><param name="movie" value="http://www.youtube.com/v/KT6QrnuoHv8?version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/KT6QrnuoHv8?version=3" type="application/x-shockwave-flash" width="695" height="416" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.theletterd.co.uk/2011/04/hello-im-british/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Still moving stuff around&#8230; rsync</title>
		<link>http://www.theletterd.co.uk/2011/04/still-moving-stuff-around-rsync/</link>
		<comments>http://www.theletterd.co.uk/2011/04/still-moving-stuff-around-rsync/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 19:14:35 +0000</pubDate>
		<dc:creator>theletterd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[scp]]></category>

		<guid isPermaLink="false">http://www.theletterd.co.uk/?p=256</guid>
		<description><![CDATA[Hmm&#8230; I get the feeling that I spend a lot of time moving stuff around&#8230; In a previous post I talked about creating a load of image thumbnails by running a custom script. Each time you added a new image to the directory, it would be necessary to run the script again. Suppose that the [...]]]></description>
			<content:encoded><![CDATA[<p>Hmm&#8230; I get the feeling that I spend a lot of time moving stuff around&#8230;</p>
<p>In a <a href="http://www.theletterd.co.uk/2011/03/because-sometimes-you-need-some-thumbnails/">previous post</a> I talked about creating a load of image thumbnails by running a custom script. Each time you added a new image to the directory, it would be necessary to run the script again.</p>
<p>Suppose that the images and thumbnails are being kept on a remote server &#8211; transferring the images from your local machine to the remote machine using <a href="http://www.theletterd.co.uk/2011/03/moving-stuff-around/">scp</a> might be one way you could do it, but if what you really want to do is have your remote folder in sync with your local folder, then it rsync is probably the tool you&#8217;re after.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="plain" style="font-family:monospace;">rsync -rv local_image_folder/ you@your_remote_server:~/path/to/remote/image_folder</pre></td></tr></table></div>

<p>now you only have to worry about keeping your local folder in order, and your remote one will be happypants.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theletterd.co.uk/2011/04/still-moving-stuff-around-rsync/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moving stuff around&#8230;</title>
		<link>http://www.theletterd.co.uk/2011/03/moving-stuff-around/</link>
		<comments>http://www.theletterd.co.uk/2011/03/moving-stuff-around/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 03:04:44 +0000</pubDate>
		<dc:creator>theletterd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scp]]></category>

		<guid isPermaLink="false">http://www.theletterd.co.uk/?p=244</guid>
		<description><![CDATA[So a long while ago, I bought a Chumby. Interesting little device, for a while at least &#8211; its primary function right now is that of an alarm-clock/mp3 player. When I&#8217;m going to sleep, I usually need something to listen to. The Chumby has a usb socket in the back which allows you to stick [...]]]></description>
			<content:encoded><![CDATA[<p>So a long while ago, I bought a Chumby. Interesting little device, for a while at least &#8211; its primary function right now is that of an alarm-clock/mp3 player.</p>
<p>When I&#8217;m going to sleep, I usually need something to listen to. The Chumby has a usb socket in the back which allows you to stick a thumb-drive in there and play mp3s off it. As much as I love the portability of thumbdrives, sometimes you just want to be <strike>lazy</strike> efficient and sit on the couch transferring the relevant mp3s from your laptop to the chumby.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="plain" style="font-family:monospace;">scp some_audio_file.mp3 root@DuncChumby:/mnt/usb</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.theletterd.co.uk/2011/03/moving-stuff-around/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Because sometimes, you need some thumbnails</title>
		<link>http://www.theletterd.co.uk/2011/03/because-sometimes-you-need-some-thumbnails/</link>
		<comments>http://www.theletterd.co.uk/2011/03/because-sometimes-you-need-some-thumbnails/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 02:51:38 +0000</pubDate>
		<dc:creator>theletterd</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://www.theletterd.co.uk/?p=232</guid>
		<description><![CDATA[So let&#8217;s say you&#8217;ve got a folder with a load of images, and you want to display them as thumbnails. One thing you certainly DON&#8217;T want to do is just load up the images and shrink them in the HTML &#8211; assuming that the images are large, this is a bandwidth hog, and an annoying [...]]]></description>
			<content:encoded><![CDATA[<p>So let&#8217;s say you&#8217;ve got a folder with a load of images, and you want to display them as thumbnails.<br />
One thing you certainly DON&#8217;T want to do is just load up the images and shrink them in the HTML &#8211; assuming that the images are large, this is a bandwidth hog, and an annoying experience for the user. Ideally, you&#8217;d want to use actual thumbnails &#8211; they&#8217;re smaller in terms of both filesize and dimensions.</p>
<p>I hacked together a little script to do this for me:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/local/bin/python2.6</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> Image
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
&nbsp;
PICDIR = <span style="color: #483d8b;">'./pics'</span>
THUMBDIR = <span style="color: #483d8b;">'%s/thumbs'</span> <span style="color: #66cc66;">%</span> PICDIR
ratio = <span style="color: #ff4500;">0.8</span>
THUMB_W = <span style="color: #ff4500;">125</span>
THUMB_H = <span style="color: #008000;">int</span><span style="color: black;">&#40;</span>ratio <span style="color: #66cc66;">*</span> THUMB_W<span style="color: black;">&#41;</span>
THUMBSIZE = <span style="color: black;">&#40;</span>THUMB_W, THUMB_H<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#1 - delete everything under /thumbs</span>
all_thumbs = <span style="color: #dc143c;">os</span>.<span style="color: black;">listdir</span><span style="color: black;">&#40;</span>THUMBDIR<span style="color: black;">&#41;</span>
remove_count = <span style="color: #ff4500;">0</span>
<span style="color: #ff7700;font-weight:bold;">for</span> thumb <span style="color: #ff7700;font-weight:bold;">in</span> all_thumbs:
    thumbpath = <span style="color: #483d8b;">'%s/%s'</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>THUMBDIR, thumb<span style="color: black;">&#41;</span>
    <span style="color: #dc143c;">os</span>.<span style="color: black;">remove</span><span style="color: black;">&#40;</span>thumbpath<span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'removed %s'</span> <span style="color: #66cc66;">%</span> thumbpath
    remove_count += <span style="color: #ff4500;">1</span>
<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'Removed %d thumbnails'</span> <span style="color: #66cc66;">%</span> remove_count
&nbsp;
<span style="color: #808080; font-style: italic;">#2 - for each image in the pic directory, generate a new thumbnail</span>
all_files = <span style="color: #dc143c;">os</span>.<span style="color: black;">listdir</span><span style="color: black;">&#40;</span>PICDIR<span style="color: black;">&#41;</span>
jpgs = <span style="color: black;">&#91;</span><span style="color: #008000;">file</span> <span style="color: #ff7700;font-weight:bold;">for</span> <span style="color: #008000;">file</span> <span style="color: #ff7700;font-weight:bold;">in</span> all_files <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">file</span>.<span style="color: black;">endswith</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'.jpg'</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">for</span> jpg <span style="color: #ff7700;font-weight:bold;">in</span> jpgs:
    original = Image.<span style="color: #008000;">open</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'%s/%s'</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>PICDIR, jpg<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
    thumb = original.<span style="color: black;">resize</span><span style="color: black;">&#40;</span>THUMBSIZE, Image.<span style="color: black;">ANTIALIAS</span><span style="color: black;">&#41;</span>
    thumbpath = <span style="color: #483d8b;">&quot;%s/%s&quot;</span> <span style="color: #66cc66;">%</span> <span style="color: black;">&#40;</span>THUMBDIR, jpg<span style="color: black;">&#41;</span>
    thumb.<span style="color: black;">save</span><span style="color: black;">&#40;</span>thumbpath<span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;wrote %s&quot;</span> <span style="color: #66cc66;">%</span> thumbpath</pre></td></tr></table></div>

<p>now whenever I rsync image files from my local machine to my webserver, I can just run the script, et voila!: thumbnails ahoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theletterd.co.uk/2011/03/because-sometimes-you-need-some-thumbnails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving stuff between laptops</title>
		<link>http://www.theletterd.co.uk/2011/03/moving-stuff-between-laptops/</link>
		<comments>http://www.theletterd.co.uk/2011/03/moving-stuff-between-laptops/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 17:04:58 +0000</pubDate>
		<dc:creator>theletterd</dc:creator>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.theletterd.co.uk/?p=226</guid>
		<description><![CDATA[I bought a new macbook pro recently and almost immediately installed Ubuntu 10.10 on it. Was then left with the issue of moving over my fairly small, but partially substantive mp3 collection&#8230; turned out to be fairly simple! on the source machine, in the appropriate directory: 1 python -m SimpleHTTPServer and then on the destination [...]]]></description>
			<content:encoded><![CDATA[<p>I bought a new macbook pro recently and almost immediately installed Ubuntu 10.10 on it. Was then left with the issue of moving over my fairly small, but partially substantive mp3 collection&#8230; turned out to be fairly simple!</p>
<p>on the source machine, in the appropriate directory:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="plain" style="font-family:monospace;">python -m SimpleHTTPServer</pre></td></tr></table></div>

<p>and then on the destination machine:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="plain" style="font-family:monospace;">wget -r veronica:8000</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.theletterd.co.uk/2011/03/moving-stuff-between-laptops/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Happy New Year!</title>
		<link>http://www.theletterd.co.uk/2011/01/happy-new-year/</link>
		<comments>http://www.theletterd.co.uk/2011/01/happy-new-year/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 19:05:07 +0000</pubDate>
		<dc:creator>theletterd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.theletterd.co.uk/?p=215</guid>
		<description><![CDATA[Let&#8217;s do some resolutions: I weigh 180lbs right now &#8211; could definitely lose a few! Aiming to be below 170. I&#8217;ve wondered at Lisp from afar. Let&#8217;s see if I can learn it and do something non-trivial. I&#8217;ve had a website idea stuck in my head for a while. Let&#8217;s see if I can Django [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s do some resolutions:</p>
<ul>
<li>I weigh 180lbs right now &#8211; could definitely lose a few! Aiming to be below 170.</li>
<li>I&#8217;ve wondered at Lisp from afar. Let&#8217;s see if I can learn it and do something non-trivial.</li>
<li>I&#8217;ve had a website idea stuck in my head for a while. Let&#8217;s see if I can <a title="Django" href="http://djangoproject.com" target="_blank">Django</a> it together.</li>
<li>Should really start writing some <a href="http://www.theletterd.co.uk/music">music</a> again. Aiming for at least one (GOOD) song.</li>
<li>Be a bit more arty again &#8211; paint something.</li>
<li>Blog more.</li>
</ul>
<p>That&#8217;ll do it for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theletterd.co.uk/2011/01/happy-new-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More Command line adventures</title>
		<link>http://www.theletterd.co.uk/2010/12/more-command-line-adventures/</link>
		<comments>http://www.theletterd.co.uk/2010/12/more-command-line-adventures/#comments</comments>
		<pubDate>Fri, 31 Dec 2010 20:17:22 +0000</pubDate>
		<dc:creator>theletterd</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://theletterd.webfactional.com/?p=163</guid>
		<description><![CDATA[Spent a little while over the last few days moving stuff between webservers, and I noticed that a few of my image files end in .jpg, and some end in .JPG. This is unacceptable. The following did the trick though. 1 2 3 for fname in *.JPG do mv $fname `basename $fname .JPG`.jpg done]]></description>
			<content:encoded><![CDATA[<p>Spent a little while over the last few days moving stuff between webservers, and I noticed that a few of my image files end in .jpg, and some end in .JPG.</p>
<p>This is unacceptable.</p>
<p>The following did the trick though.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> fname <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">*</span>.JPG
    <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #007800;">$fname</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">basename</span> <span style="color: #007800;">$fname</span> .JPG<span style="color: #000000; font-weight: bold;">`</span>.jpg
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.theletterd.co.uk/2010/12/more-command-line-adventures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adventures on the command line</title>
		<link>http://www.theletterd.co.uk/2010/12/adventures-on-the-command-line/</link>
		<comments>http://www.theletterd.co.uk/2010/12/adventures-on-the-command-line/#comments</comments>
		<pubDate>Sat, 04 Dec 2010 18:21:44 +0000</pubDate>
		<dc:creator>theletterd</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://www.theletterd.co.uk/?p=104</guid>
		<description><![CDATA[It seems as if every other day or so, I discover an easy way to do something that once would&#8217;ve been very annoying. Needed to copy all the music off my phone into my music directory. The directory structure on my phone was Album_name/music_file &#8211; I didn&#8217;t really want that. This command finds all the [...]]]></description>
			<content:encoded><![CDATA[<p>It seems as if every other day or so, I discover an easy way to do something that once would&#8217;ve been very annoying.</p>
<p>Needed to copy all the music off my phone into my music directory. The directory structure on my phone was Album_name/music_file &#8211; I didn&#8217;t really want that.</p>
<p>This command finds all the mp3s in/below the current folder and copies them to ~/Music.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="plain" style="font-family:monospace;">find . -name *.mp3 -exec cp {} ~/Music/ ';'</pre></td></tr></table></div>

<p>Seeing as this was all done over USB on a bit of an old phone, it was (is &#8211; it&#8217;s still going.) hugely slow.</p>
<p>This allows me to see how many mp3s are in the Music directory &#8211; so I can more-or-less keep track of progress.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="plain" style="font-family:monospace;">watch &quot;ls -la ~/Music | grep mp3 | wc -l&quot;</pre></td></tr></table></div>

<p>fun times.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theletterd.co.uk/2010/12/adventures-on-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

