<?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>Blog O' Matty &#187; UNIX Shell</title>
	<atom:link href="http://prefetch.net/blog/index.php/category/unix-shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://prefetch.net/blog</link>
	<description>Blog O' Matty</description>
	<lastBuildDate>Tue, 07 Feb 2012 03:00:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Finding approximate matches in a data file with agrep</title>
		<link>http://prefetch.net/blog/index.php/2010/12/27/finding-approximate-matches-in-a-data-file-with-agrep/</link>
		<comments>http://prefetch.net/blog/index.php/2010/12/27/finding-approximate-matches-in-a-data-file-with-agrep/#comments</comments>
		<pubDate>Mon, 27 Dec 2010 16:34:27 +0000</pubDate>
		<dc:creator>matty</dc:creator>
				<category><![CDATA[Linux Utilities]]></category>
		<category><![CDATA[UNIX Shell]]></category>

		<guid isPermaLink="false">http://prefetch.net/blog/?p=3997</guid>
		<description><![CDATA[A few weeks back I ran into a situation that required me to locate a data given a file with various variations of that data. I proceeded to grep for each form of the string (e.g., &#8220;teh&#8221;, &#8220;the&#8221;, &#8220;tte&#8221;) I could think of, but wasn&#8217;t getting the results I wanted. After a bit of poking [...]]]></description>
		<wfw:commentRss>http://prefetch.net/blog/index.php/2010/12/27/finding-approximate-matches-in-a-data-file-with-agrep/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sorting data by dates, numbers and much much more</title>
		<link>http://prefetch.net/blog/index.php/2010/06/24/sorting-data-by-dates-numbers-and-much-much-more/</link>
		<comments>http://prefetch.net/blog/index.php/2010/06/24/sorting-data-by-dates-numbers-and-much-much-more/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 12:56:21 +0000</pubDate>
		<dc:creator>matty</dc:creator>
				<category><![CDATA[UNIX Shell]]></category>

		<guid isPermaLink="false">http://prefetch.net/blog/?p=3608</guid>
		<description><![CDATA[Every year or two I try to re-read manual pages and documentation about my favorite UNIX tools (bash, awk, sed, grep, etc.). Each time I do this I pick up some cool new nugget of information, and refresh my mind on things that I may have forgot. While reading through an article on sort, I [...]]]></description>
		<wfw:commentRss>http://prefetch.net/blog/index.php/2010/06/24/sorting-data-by-dates-numbers-and-much-much-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to undelete any open, deleted file on linux / solaris</title>
		<link>http://prefetch.net/blog/index.php/2009/02/25/how-to-undelete-any-open-deleted-file-on-linux-solaris/</link>
		<comments>http://prefetch.net/blog/index.php/2009/02/25/how-to-undelete-any-open-deleted-file-on-linux-solaris/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 02:19:15 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[UNIX Shell]]></category>

		<guid isPermaLink="false">http://prefetch.net/blog/?p=1060</guid>
		<description><![CDATA[Chris Dew wrote up a neat trick on how to recover files if deleted on Linux, yet still open by a process. This works on Solaris as well.  =) $:~:uname -a SunOS somehost.com 5.10 Generic_127112-11 i86pc i386 i86pc $:~:echo &#8220;sup prefetch.net folks?&#8221; &#62; testfile $:~:tail -f testfile &#38; [1] 17134 $:~:rm testfile $:~:ls /proc/17134/fd/ 0  [...]]]></description>
		<wfw:commentRss>http://prefetch.net/blog/index.php/2009/02/25/how-to-undelete-any-open-deleted-file-on-linux-solaris/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Helpful shell shortcuts</title>
		<link>http://prefetch.net/blog/index.php/2008/12/22/helpful-shell-shortcuts/</link>
		<comments>http://prefetch.net/blog/index.php/2008/12/22/helpful-shell-shortcuts/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 14:54:20 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[UNIX Shell]]></category>

		<guid isPermaLink="false">http://prefetch.net/blog/?p=951</guid>
		<description><![CDATA[So this may be a little basic, but I find myself using these two shortcuts quite a bit while at the shell. If you ever find yourself wanting to &#8220;reuse&#8221; the last argument in a command &#8212; for example, here I move a file from one location into /var/tmp and I want to &#8220;cd&#8221; into [...]]]></description>
		<wfw:commentRss>http://prefetch.net/blog/index.php/2008/12/22/helpful-shell-shortcuts/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Deciphering shell exit codes</title>
		<link>http://prefetch.net/blog/index.php/2008/11/20/deciphering-shell-exit-codes/</link>
		<comments>http://prefetch.net/blog/index.php/2008/11/20/deciphering-shell-exit-codes/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 04:19:17 +0000</pubDate>
		<dc:creator>matty</dc:creator>
				<category><![CDATA[UNIX Shell]]></category>

		<guid isPermaLink="false">http://prefetch.net/blog/?p=923</guid>
		<description><![CDATA[I was recently debugging an issue with a shell script, and noticed that the shell was exiting with an exit code greater than 100 when it received a SIGTSTP signal: $ cat test #!/bin/bash sleep 60 # Window one $ ./test [1]+ Stopped ./test Home:~ matty$ echo $? 146 # Window two $ kill -18 [...]]]></description>
		<wfw:commentRss>http://prefetch.net/blog/index.php/2008/11/20/deciphering-shell-exit-codes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bash&#8217;s built in commands</title>
		<link>http://prefetch.net/blog/index.php/2008/07/09/bashs-built-in-commands/</link>
		<comments>http://prefetch.net/blog/index.php/2008/07/09/bashs-built-in-commands/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 12:57:48 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[UNIX Shell]]></category>

		<guid isPermaLink="false">http://prefetch.net/blog/?p=874</guid>
		<description><![CDATA[If you&#8217;re a frequent user of the bash shell, I would suggest taking a peek at the GNU reference guide next time you have a chance.  There are a lot of cool built in functions/commands within bash that are pretty neat.  To get an idea of what these built in commands are: $ ps PID [...]]]></description>
		<wfw:commentRss>http://prefetch.net/blog/index.php/2008/07/09/bashs-built-in-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Printing a set of lines after a pattern match</title>
		<link>http://prefetch.net/blog/index.php/2007/12/03/printing-a-set-of-lines-after-a-pattern-match/</link>
		<comments>http://prefetch.net/blog/index.php/2007/12/03/printing-a-set-of-lines-after-a-pattern-match/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 00:52:57 +0000</pubDate>
		<dc:creator>matty</dc:creator>
				<category><![CDATA[UNIX Shell]]></category>

		<guid isPermaLink="false">http://prefetch.net/blog/index.php/2007/12/03/printing-a-set-of-lines-after-a-pattern-match/</guid>
		<description><![CDATA[I had to do some pattern matching last week, and needed a way to print the two lines that occurred after each line that matched a specific string. Since awk provides robust pattern matching, I came up with the following awk command line to grab the information I needed: $ cat test foo 1 2 [...]]]></description>
		<wfw:commentRss>http://prefetch.net/blog/index.php/2007/12/03/printing-a-set-of-lines-after-a-pattern-match/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Not grep!</title>
		<link>http://prefetch.net/blog/index.php/2007/02/09/not-grep/</link>
		<comments>http://prefetch.net/blog/index.php/2007/02/09/not-grep/#comments</comments>
		<pubDate>Sat, 10 Feb 2007 02:11:27 +0000</pubDate>
		<dc:creator>matty</dc:creator>
				<category><![CDATA[UNIX Shell]]></category>

		<guid isPermaLink="false">http://prefetch.net/blog/index.php/2007/02/09/not-grep/</guid>
		<description><![CDATA[While reviewing some shell scripts last week, I saw the infamous find &#124; grep: $ /usr/bin/find /foo -type f &#124; egrep -v \*.inp I am not real sure why more people don&#8217;t leverage the logic operations build into find: $ /usr/bin/find /foo -type f -not -name \*.inp This saves a fork() and exec(), and should [...]]]></description>
		<wfw:commentRss>http://prefetch.net/blog/index.php/2007/02/09/not-grep/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Formatting text for printing</title>
		<link>http://prefetch.net/blog/index.php/2007/01/06/formatting-text-for-printing/</link>
		<comments>http://prefetch.net/blog/index.php/2007/01/06/formatting-text-for-printing/#comments</comments>
		<pubDate>Sat, 06 Jan 2007 16:08:57 +0000</pubDate>
		<dc:creator>matty</dc:creator>
				<category><![CDATA[UNIX Shell]]></category>

		<guid isPermaLink="false">http://prefetch.net/blog/index.php/2007/01/06/shell-tools-to-format-text-for-printing/</guid>
		<description><![CDATA[I periodically need to format text data on my Linux desktop for printing, and have always gone about this in one of two ways. If I want to add margins and make the data conform to a specific page length, I use the pr utility. Here is an example that formats FILE with a #4 [...]]]></description>
		<wfw:commentRss>http://prefetch.net/blog/index.php/2007/01/06/formatting-text-for-printing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bash short cuts / hotkeys</title>
		<link>http://prefetch.net/blog/index.php/2006/12/01/bash-short-cuts-hotkeys/</link>
		<comments>http://prefetch.net/blog/index.php/2006/12/01/bash-short-cuts-hotkeys/#comments</comments>
		<pubDate>Fri, 01 Dec 2006 19:41:35 +0000</pubDate>
		<dc:creator>matty</dc:creator>
				<category><![CDATA[UNIX Shell]]></category>

		<guid isPermaLink="false">http://prefetch.net/blog/index.php/2006/12/01/bash-short-cuts-hotkeys/</guid>
		<description><![CDATA[I use bash as my primary shell, and have come to rely on the following bash short cuts: alt-f -- move forward one word alt-b -- move backwards one word ctrl-a -- takes you to the begining of the command you are currently typing. ctrl-b -- move backwards one character ctrl-c -- kills the current [...]]]></description>
		<wfw:commentRss>http://prefetch.net/blog/index.php/2006/12/01/bash-short-cuts-hotkeys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

