<?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>Erics Tech Blog &#187; Tips</title>
	<atom:link href="http://eric.lubow.org/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://eric.lubow.org</link>
	<description>Thoughts, musings, and other idealistic (sometimes useful) systems and development hoopla.</description>
	<lastBuildDate>Fri, 18 Nov 2011 14:56:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Using Vi Mode Everywhere</title>
		<link>http://eric.lubow.org/2011/tips/using-vi-mode-everywhere/</link>
		<comments>http://eric.lubow.org/2011/tips/using-vi-mode-everywhere/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 07:00:07 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=855</guid>
		<description><![CDATA[Not literally everywhere, but more places than usual. I have been looking for this solution for a long time and finally found it. Anyone who has ever worked around me knows that I do basically everything in Vi. Not only do I use it to edit files, but I use it as an IDE for [...]]]></description>
			<content:encoded><![CDATA[<p>Not literally everywhere, but more places than usual.  I have been looking for this solution for a long time and finally found it.  Anyone who has ever worked around me knows that I do basically everything in <a href="http://www.vim.org/">Vi</a>.<br />
<span id="more-855"></span><br />
Not only do I use it to edit files, but I use it as an IDE for development (even on my Mac instead of Textmate).  So the natural extension is for me to use it in the command prompt as well.  So in my <strong>.bashrc</strong> file, I have the line:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-o</span> <span style="color: #c20cb9; font-weight: bold;">vi</span></div></div>
<p>This allows me to navigate the bash console with the usual vim suspects: <em>h, j, k, l</em>.  In addition to that, I also get some fun ones like word movement <em>w</em> and the <em>dw</em> that goes along with it.</p>
<p>But the big winner for me is now I am able to use the vim environment and movement keys inside the irb (Ruby), Mongo, MySQL consoles (still not Redis though).  To do that, just add the following lines to the following files:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;bind -v&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.editrc<br />
$ <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;set editing-mode vi&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.inputrc</div></div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2011/tips/using-vi-mode-everywhere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Counting Frequencies of Frequencies</title>
		<link>http://eric.lubow.org/2010/tips/counting-frequencies-of-frequencies/</link>
		<comments>http://eric.lubow.org/2010/tips/counting-frequencies-of-frequencies/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 12:30:13 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=775</guid>
		<description><![CDATA[Lots of people forget about the usefulness of the core utilities (the tools available in Bash). I am even pretty guilty of it at times with such quick and easy things like Perl, Ruby, or Python that allow you to process items from the command line. However, they load up an entire interpreter. It is [...]]]></description>
			<content:encoded><![CDATA[<p>Lots of people forget about the usefulness of the core utilities (the tools available in Bash).  I am even pretty guilty of it at times with such quick and easy things like Perl, Ruby, or Python that allow you to process items from the command line.  However, they load up an entire interpreter.  It is usually better to use the coreutils.<br />
<span id="more-775"></span></p>
<p>I&#8217;ll give you the specific example I had to deal with, but this can be extrapolated out and I&#8217;m sure reused for other purposes.  I have lists of email addresses of who has received emails that were sent over the past 7 days.  I do this with a find command since the address files are created nightly.  They are laid out with 1 email address (and some other meta data) per line.  You&#8217;ll notice the <strong>awk</strong> in the find command; that&#8217;s just to extract the email address from the line to make things easier to work with.</p>
<p>The overall goal here is find out how many times people were emailed over the past 7 days.  Another way of saying it is, how many people received 1,2,3,4, etc mailings over the past week.  This is an exercise in aggregation.</p>
<p>First, here is everything in its entirety and then I will proceed to go through it all piece by piece.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>nfs<span style="color: #000000; font-weight: bold;">/</span>mailings<span style="color: #000000; font-weight: bold;">/</span>lists<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-maxdepth</span> <span style="color: #000000;">3</span> <span style="color: #660033;">-ctime</span> <span style="color: #660033;">-7</span> <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;master_list.txt&quot;</span> \<br />
<span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $2}'</span> <span style="color: #ff0000;">'{}'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>emails.txt \; <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>emails.txt <span style="color: #000000; font-weight: bold;">|</span> \<br />
<span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ for (i=1;i&lt; =NF;i++) count[$i]++ } &nbsp;END { for (i in count) print count[i], i }'</span> <span style="color: #007800;">$*</span> <span style="color: #000000; font-weight: bold;">|</span>\<br />
<span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $1}'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ for (i=1;i&lt;=NF;i++) count[$i]++ } &nbsp;\<br />
END { for (i in count) print count[i], i }'</span> <span style="color: #007800;">$*</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $2,$1}'</span> <span style="color: #000000; font-weight: bold;">|</span> \<br />
<span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-n</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>emails.txt<br />
<span style="color: #000000;">1</span> <span style="color: #000000;">93278</span><br />
<span style="color: #000000;">2</span> <span style="color: #000000;">21415</span><br />
<span style="color: #000000;">3</span> <span style="color: #000000;">16924</span><br />
<span style="color: #000000;">4</span> <span style="color: #000000;">3064131</span><br />
<span style="color: #000000;">5</span> <span style="color: #000000;">548421</span><br />
<span style="color: #000000;">6</span> <span style="color: #000000;">102</span></div></div>
<p>A quick breakdown goes as follows.</p>
<p>1) Find all mailing list master files (-name) that aren&#8217;t archived (-maxdepth) that were created in the last 7 days (-ctime) and print their id (exec awk) to a tmp file. Everything here needs to be concatenated so as not to clobber the emails added by the previous day.<br />
</code></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>nfs<span style="color: #000000; font-weight: bold;">/</span>mailings<span style="color: #000000; font-weight: bold;">/</span>lists<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-maxdepth</span> <span style="color: #000000;">3</span> <span style="color: #660033;">-ctime</span> <span style="color: #660033;">-7</span> <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;master_list.txt&quot;</span>\<br />
<span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $2}'</span> <span style="color: #ff0000;">'{}'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>emails.txt \;</div></div>
<p>2) The next piece word frequency counts the emails and prints them to STDOUT in a <cnt> <email> manner. This is to say that the first column is a count of how many times the second column has received an email over the past 7 days.  Now we know how many emails each individual has received and we need to aggregate again.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>emails.txt <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ for (i=1;i&lt; =NF;i++) count[$i]++ } &nbsp;\<br />
END { for (i in count) print count[i], i }'</span> <span style="color: #007800;">$*</span></div></div>
<p>3) Because I am using pipes, instead of printing the previous step to STDOUT, I only print the first column (count) and then count the frequency of that.<br />
</code></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $1} | awk '</span><span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">i</span>=<span style="color: #000000;">1</span>;i<span style="color: #000000; font-weight: bold;">&lt;</span> =NF;i++<span style="color: #7a0874; font-weight: bold;">&#41;</span> count<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">$i</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>++ <span style="color: #7a0874; font-weight: bold;">&#125;</span> \<br />
END <span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>i <span style="color: #000000; font-weight: bold;">in</span> count<span style="color: #7a0874; font-weight: bold;">&#41;</span> print count<span style="color: #7a0874; font-weight: bold;">&#91;</span>i<span style="color: #7a0874; font-weight: bold;">&#93;</span>, i <span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #ff0000;">' $*</span></div></div>
<p>4) Then I swap the columns so I get <freq>
<person_count>.  This is much more logical and is the way we generally read tables.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $2,$1}'</span></div></div>
<p>5) Finally I sort that result numerically ascending and remove the temp file so I don't cat things to it again.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-n</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>emails.txt</div></div>
<p>6) We get our output in an easy to read format (Note: I added the headers).</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Freq &nbsp; Total<br />
&nbsp;<span style="color: #000000;">1</span> &nbsp; &nbsp; <span style="color: #000000;">93278</span><br />
&nbsp;<span style="color: #000000;">2</span> &nbsp; &nbsp; <span style="color: #000000;">21415</span><br />
&nbsp;<span style="color: #000000;">3</span> &nbsp; &nbsp; <span style="color: #000000;">16924</span><br />
&nbsp;<span style="color: #000000;">4</span> &nbsp; &nbsp; <span style="color: #000000;">3064131</span><br />
&nbsp;<span style="color: #000000;">5</span> &nbsp; &nbsp; <span style="color: #000000;">548421</span><br />
&nbsp;<span style="color: #000000;">6</span> &nbsp; &nbsp; <span style="color: #000000;">102</span></div></div>
</person_count></freq></code></email></cnt></p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2009/databases/mysql/counting-email-addresses-by-domain-in-mysql/' rel='bookmark' title='Counting Email Addresses By Domain in MySQL'>Counting Email Addresses By Domain in MySQL</a></li>
<li><a href='http://eric.lubow.org/2007/perl/emailfind/' rel='bookmark' title='Email::Find'>Email::Find</a></li>
<li><a href='http://eric.lubow.org/2008/linux-security/checking-for-a-dos/' rel='bookmark' title='Checking For A DoS'>Checking For A DoS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2010/tips/counting-frequencies-of-frequencies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random Tech Notes And Buzz Updates</title>
		<link>http://eric.lubow.org/2010/tips/random-tech-notes-and-buzz-updates/</link>
		<comments>http://eric.lubow.org/2010/tips/random-tech-notes-and-buzz-updates/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 12:00:00 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[buzz]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=746</guid>
		<description><![CDATA[Since Google Buzz is Twitterish in the sense that you can post a quick note, but different in the sense that (amongst other things), it can be longer than 140 characters. So in that vein, I&#8217;m starting to try to make a habit of a quick post (a couple per week) of things I do [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://www.google.com/buzz">Google Buzz</a> is <a href="http://twitter.com/">Twitter</a>ish in the sense that you can post a quick note, but different in the sense that (amongst other things), it can be longer than 140 characters.  So in that vein, I&#8217;m starting to try to make a habit of a quick post (a couple per week) of things I do to make my life easier.  This goes both for SysAdmins and for Programmers.<br />
<span id="more-746"></span><br />
I&#8217;ll be adding things for everything from Vim and Bash, to MySQL, Perl, Ruby, Python, and any other language or app that I happen to be using shortcuts in.  If you have another idea or a better way to do something, I&#8217;d love to hear it. So add a comment or hit me up on Twitter (<a href="http://twitter.com/elubow">@elubow</a>). I&#8217;ve already got a few up there so check them out.</p>
<p>And for the record, I am not trying to mimic or one up something like <a href="http://www.commandlinefu.com/">commandlinefu.com</a>.  Just providing things that work well in my world. </p>
<p>The Google Buzz account is <a href="http://www.google.com/buzz/eric.lubow/">here</a>.</p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2010/databases/mongodb/getting-a-random-record-from-a-mongodb-collection/' rel='bookmark' title='Getting a Random Record From a MongoDB Collection'>Getting a Random Record From a MongoDB Collection</a></li>
<li><a href='http://eric.lubow.org/2008/misc/the-next-step-in-browser-evolution/' rel='bookmark' title='The Next Step In Browser Evolution'>The Next Step In Browser Evolution</a></li>
<li><a href='http://eric.lubow.org/2009/social-networking/why-idea-people-should-twitter/' rel='bookmark' title='Why Idea People Should Twitter'>Why Idea People Should Twitter</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2010/tips/random-tech-notes-and-buzz-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Peertester Community Testing</title>
		<link>http://eric.lubow.org/2010/tips/peertester-community-testing/</link>
		<comments>http://eric.lubow.org/2010/tips/peertester-community-testing/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 11:00:02 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=619</guid>
		<description><![CDATA[I am all about community and people participating in a community. Its the way social media succeeds. But there are non-social media communities out there too (yes I know that&#8217;s shocking). I was recently asked to participate in a beta testing for Peer Tester. I think this is an absolutely fantastic idea. Developers helping other [...]]]></description>
			<content:encoded><![CDATA[<p>I am all about community and people participating in a community.  Its the way social media succeeds.  But there are non-social media communities out there too (yes I know that&#8217;s shocking). I was recently asked to participate in a beta testing for <a href="http://www.peertester.com/">Peer Tester</a>.  I think this is an absolutely fantastic idea.  Developers helping other developers test their apps.  Hats off to the guys and gals over at <a href="http://www.engineyard.com/">Engine Yard</a> for designing and putting this application together.  Other than the fact that I got tired of looking at that olive green color after years in the military, this site is an great tool for developers.<br />
<span id="more-619"></span><br />
So now you&#8217;re probably asking what exactly it is.  Well, you create an account and then create tests for your web application.  The tester will then follow your instructions, clicking on what you tell them to do or reading what you tell them to read.  Then they are asked questions (multiple choice, short answer, or whatever suits the situation) while they are going through the testing.  You can then view their feedback and modify (or not modify) your application accordingly.</p>
<p>For people like me who absolutely suck at flow and visual aesthetics, this is great to see if others think your product elicits the expected reaction.  You can even specify the number of people you want to use as a sample size for testing.  But just like with any good community site, you need to participate in order to have the site excel.  You gain points and get badges for participation and bug finding.</p>
<p>Remember, the site is still in beta (and I can only hope that it will change the site color before it gets out of beta, but that&#8217;s me) so there may be some bugs.  I encourage everyone to take a look.  A little extra application testing never hurt anyone.</p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2010/social-networking/community-participation/' rel='bookmark' title='Community Participation'>Community Participation</a></li>
<li><a href='http://eric.lubow.org/2009/ruby/rails/testing-sessions-with-digestsha256-passwords-in-rails/' rel='bookmark' title='Testing Sessions with Digest::SHA256 Passwords In Rails'>Testing Sessions with Digest::SHA256 Passwords In Rails</a></li>
<li><a href='http://eric.lubow.org/2009/misc/social-media-information-propagation/' rel='bookmark' title='Social Media Information Propagation'>Social Media Information Propagation</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2010/tips/peertester-community-testing/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Git Command Aliases</title>
		<link>http://eric.lubow.org/2009/tips/git-command-aliases/</link>
		<comments>http://eric.lubow.org/2009/tips/git-command-aliases/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 12:45:10 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://eric.lubow.org/?p=503</guid>
		<description><![CDATA[This is kind of a tip of the day, but I just think its cool so I am sharing it with everyone. And being a recent convert to Git and the fact that I have to use Subversion at my place of work, I find myself constantly doing things like this out of habit. $ [...]]]></description>
			<content:encoded><![CDATA[<p>This is kind of a tip of the day, but I just think its cool so I am sharing it with everyone. And being a recent convert to Git and the fact that I have to use Subversion at my place of work, I find myself constantly doing things like this out of habit.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ git st &nbsp;&amp;&amp; git ci</div></div>
<p>Well now I can do that (although it may not be a good idea) with git alias:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">elubow@beacon (master) supportskydivers$ git config --global alias.st status<br />
elubow@beacon (master) supportskydivers$ git config --global alias.ci commit<br />
elubow@beacon (master) supportskydivers$ git st &amp;&amp; git ci<br />
# On branch master<br />
nothing to commit (working directory clean)</div></div>
<p>Now <strong>st</strong> and <strong>ci</strong> are git aliases for <strong>status</strong> and <strong>commit</strong> respectively.</p>


<p>Related posts:<ol><li><a href='http://eric.lubow.org/2009/system-administration/git-branch-name-in-your-bash-prompt/' rel='bookmark' title='Git Branch Name in Your Bash Prompt'>Git Branch Name in Your Bash Prompt</a></li>
<li><a href='http://eric.lubow.org/2009/misc/converting-from-subversion-to-git/' rel='bookmark' title='Converting From Subversion To Git'>Converting From Subversion To Git</a></li>
<li><a href='http://eric.lubow.org/2010/system-administration/cluster-ssh-with-csshx/' rel='bookmark' title='Cluster SSH with cSSHx'>Cluster SSH with cSSHx</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.lubow.org/2009/tips/git-command-aliases/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

