<?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>My Mac Blog &#187; Terminal</title>
	<atom:link href="http://www.stephendurr.com/tags/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stephendurr.com</link>
	<description>&#34;The box said Windows 7 or better...so I bought a Mac&#34;</description>
	<lastBuildDate>Sat, 03 Dec 2011 21:24:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using and searching the command line history</title>
		<link>http://www.stephendurr.com/mac/using-and-searching-the-command-line-history/</link>
		<comments>http://www.stephendurr.com/mac/using-and-searching-the-command-line-history/#comments</comments>
		<pubDate>Sat, 09 Oct 2010 11:05:04 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac Top Tips]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[grep]]></category>

		<guid isPermaLink="false">http://www.stephendurr.com/?p=162</guid>
		<description><![CDATA[A colleague has just introduced me to the history command. This allows you to list the recent history of commands used on the command line. This is ideal when using the command line on a regular basis. One example is that I do a great deal of development on my local machine so when I [...]]]></description>
			<content:encoded><![CDATA[<p>A colleague has just introduced me to the history command. This allows you to list the recent history of commands used on the command line.</p>
<p>This is ideal when using the command line on a regular basis. One example is that I do a great deal of development on my local machine so when I eventually come to connect to the remote server I have to keep typing the ssh command out.</p>
<p>By typeing <span style="color: #ff0000;">history</span> on the command line you get a numbered list of all the commands. Now this on its own isn&#8217;t really useful but when coupled with the following becomes extremely useful.</p>
<p>If you now type <span style="color: #ff0000;">!number</span> and press enter this will execute the command. (Number is the number of the item from the returned list)</p>
<p>Better still if you do the following&#8230; <span style="color: #ff0000;">!number:p</span> this prints the command to the list so you can then edit the command if some parameters need to be changed.</p>
<p>It gets better&#8230; yu can filter the returned list by using the grep command. <span style="color: #ff0000;">history | grep &#8220;search term&#8221;</span></p>
<p><span style="color: #000000;">Use the above command to print the required command to the command line and away you go.</span></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;partner=sociable" title="Print"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;title=Using%20and%20searching%20the%20command%20line%20history&amp;bodytext=A%20colleague%20has%20just%20introduced%20me%20to%20the%20history%20command.%20This%20allows%20you%20to%20list%20the%20recent%20history%20of%20commands%20used%20on%20the%20command%20line.%0D%0A%0D%0AThis%20is%20ideal%20when%20using%20the%20command%20line%20on%20a%20regular%20basis.%20One%20example%20is%20that%20I%20do%20a%20great%20deal%20of%20deve" title="Digg"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;title=Using%20and%20searching%20the%20command%20line%20history&amp;notes=A%20colleague%20has%20just%20introduced%20me%20to%20the%20history%20command.%20This%20allows%20you%20to%20list%20the%20recent%20history%20of%20commands%20used%20on%20the%20command%20line.%0D%0A%0D%0AThis%20is%20ideal%20when%20using%20the%20command%20line%20on%20a%20regular%20basis.%20One%20example%20is%20that%20I%20do%20a%20great%20deal%20of%20deve" title="del.icio.us"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;t=Using%20and%20searching%20the%20command%20line%20history" title="Facebook"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;title=Using%20and%20searching%20the%20command%20line%20history" title="Mixx"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;title=Using%20and%20searching%20the%20command%20line%20history&amp;annotation=A%20colleague%20has%20just%20introduced%20me%20to%20the%20history%20command.%20This%20allows%20you%20to%20list%20the%20recent%20history%20of%20commands%20used%20on%20the%20command%20line.%0D%0A%0D%0AThis%20is%20ideal%20when%20using%20the%20command%20line%20on%20a%20regular%20basis.%20One%20example%20is%20that%20I%20do%20a%20great%20deal%20of%20deve" title="Google Bookmarks"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;title=Using%20and%20searching%20the%20command%20line%20history" title="Live"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;t=Using%20and%20searching%20the%20command%20line%20history" title="MySpace"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;title=Using%20and%20searching%20the%20command%20line%20history" title="StumbleUpon"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F" title="Technorati"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Using%20and%20searching%20the%20command%20line%20history%20-%20http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F" title="Twitter"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
	<li><a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;submitHeadline=Using%20and%20searching%20the%20command%20line%20history&amp;submitSummary=A%20colleague%20has%20just%20introduced%20me%20to%20the%20history%20command.%20This%20allows%20you%20to%20list%20the%20recent%20history%20of%20commands%20used%20on%20the%20command%20line.%0D%0A%0D%0AThis%20is%20ideal%20when%20using%20the%20command%20line%20on%20a%20regular%20basis.%20One%20example%20is%20that%20I%20do%20a%20great%20deal%20of%20deve&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a></li>
	<li><a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fusing-and-searching-the-command-line-history%2F&amp;title=Using%20and%20searching%20the%20command%20line%20history&amp;body=A%20colleague%20has%20just%20introduced%20me%20to%20the%20history%20command.%20This%20allows%20you%20to%20list%20the%20recent%20history%20of%20commands%20used%20on%20the%20command%20line.%0D%0A%0D%0AThis%20is%20ideal%20when%20using%20the%20command%20line%20on%20a%20regular%20basis.%20One%20example%20is%20that%20I%20do%20a%20great%20deal%20of%20deve" title="Ping.fm"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stephendurr.com/feed/" title="RSS"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.stephendurr.com/mac/using-and-searching-the-command-line-history/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joining mp3 files</title>
		<link>http://www.stephendurr.com/mac/joining-mp3-files/</link>
		<comments>http://www.stephendurr.com/mac/joining-mp3-files/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 20:57:19 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac Top Tips]]></category>
		<category><![CDATA[Concatenate]]></category>
		<category><![CDATA[Join]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://www.stephendurr.com/?p=57</guid>
		<description><![CDATA[I have a collection (about 100 files) of mp3 files that i wanted to join together, well join together in smaller groups of about 14. I was about to look for an application to do this but being a fan of using command line I was drawn to investigating if it could be done using [...]]]></description>
			<content:encoded><![CDATA[<p>I have a collection (about 100 files) of mp3 files that i wanted to join together, well join together in smaller groups of about 14. I was about to look for an application to do this but being a fan of using command line I was drawn to investigating if it could be done using Mac Terminal and the command line.<br />
I found the following little command would do the job, and did just fine.</p>
<blockquote><p>
<code><br />
cat * > new_file_name.mp3<br />
</code>
</p></blockquote>
<p>Navigate, using terminal or similar command line tool, to the folder where all the files that are to be joined are stored. Enter the command cat * > new_file_name.mp3 and hit enter. There you go that is it. A few seconds later you have a file in that directory that is all the other files joined together.<br />
Something to note is that the * will join the files in order they appear in the folder. If you files are not in the correct order then you will need to use the following &#8211; </p>
<blockquote><p>
<code><br />
cat part_one.mp3 part_two.mp3 part_three.mp3 > new_file_name.mp3<br />
</code>
</p></blockquote>
<p>I have not used this last action but please let me know you experiences.<br />
<br />
Steve</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;partner=sociable" title="Print"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" /></a></li>
	<li><a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;title=Joining%20mp3%20files&amp;bodytext=I%20have%20a%20collection%20%28about%20100%20files%29%20of%20mp3%20files%20that%20i%20wanted%20to%20join%20together%2C%20well%20join%20together%20in%20smaller%20groups%20of%20about%2014.%20I%20was%20about%20to%20look%20for%20an%20application%20to%20do%20this%20but%20being%20a%20fan%20of%20using%20command%20line%20I%20was%20drawn%20to%20investigating%20" title="Digg"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a></li>
	<li><a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;title=Joining%20mp3%20files&amp;notes=I%20have%20a%20collection%20%28about%20100%20files%29%20of%20mp3%20files%20that%20i%20wanted%20to%20join%20together%2C%20well%20join%20together%20in%20smaller%20groups%20of%20about%2014.%20I%20was%20about%20to%20look%20for%20an%20application%20to%20do%20this%20but%20being%20a%20fan%20of%20using%20command%20line%20I%20was%20drawn%20to%20investigating%20" title="del.icio.us"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a></li>
	<li><a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;t=Joining%20mp3%20files" title="Facebook"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a></li>
	<li><a rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;title=Joining%20mp3%20files" title="Mixx"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a></li>
	<li><a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;title=Joining%20mp3%20files&amp;annotation=I%20have%20a%20collection%20%28about%20100%20files%29%20of%20mp3%20files%20that%20i%20wanted%20to%20join%20together%2C%20well%20join%20together%20in%20smaller%20groups%20of%20about%2014.%20I%20was%20about%20to%20look%20for%20an%20application%20to%20do%20this%20but%20being%20a%20fan%20of%20using%20command%20line%20I%20was%20drawn%20to%20investigating%20" title="Google Bookmarks"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a></li>
	<li><a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;title=Joining%20mp3%20files" title="Live"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a></li>
	<li><a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;t=Joining%20mp3%20files" title="MySpace"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;title=Joining%20mp3%20files" title="StumbleUpon"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a></li>
	<li><a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F" title="Technorati"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a></li>
	<li><a rel="nofollow"  href="http://twitter.com/home?status=Joining%20mp3%20files%20-%20http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F" title="Twitter"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a></li>
	<li><a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;submitHeadline=Joining%20mp3%20files&amp;submitSummary=I%20have%20a%20collection%20%28about%20100%20files%29%20of%20mp3%20files%20that%20i%20wanted%20to%20join%20together%2C%20well%20join%20together%20in%20smaller%20groups%20of%20about%2014.%20I%20was%20about%20to%20look%20for%20an%20application%20to%20do%20this%20but%20being%20a%20fan%20of%20using%20command%20line%20I%20was%20drawn%20to%20investigating%20&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a></li>
	<li><a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fwww.stephendurr.com%2Fmac%2Fjoining-mp3-files%2F&amp;title=Joining%20mp3%20files&amp;body=I%20have%20a%20collection%20%28about%20100%20files%29%20of%20mp3%20files%20that%20i%20wanted%20to%20join%20together%2C%20well%20join%20together%20in%20smaller%20groups%20of%20about%2014.%20I%20was%20about%20to%20look%20for%20an%20application%20to%20do%20this%20but%20being%20a%20fan%20of%20using%20command%20line%20I%20was%20drawn%20to%20investigating%20" title="Ping.fm"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="http://www.stephendurr.com/feed/" title="RSS"><img src="http://www.stephendurr.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.stephendurr.com/mac/joining-mp3-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

