<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
  "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" version="XHTML+RDFa 1.0" dir="ltr" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">

<head profile="http://www.w3.org/1999/xhtml/vocab">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="http://citricguy.com/misc/favicon.ico" type="image/vnd.microsoft.icon"/>
<meta name="Generator" content="Drupal 7 (http://drupal.org)"/>
  <title>citricguy.com</title>
  <link rel="stylesheet" href="http://citricguy.com/A.modules,,_system,,_system.base.css,,qmr26rq+modules,,_system,,_system.menus.css,,qmr26rq+modules,,_system,,_system.messages.css,,qmr26rq+modules,,_system,,_system.theme.css,,qmr26rq+modules,,_aggregator,,_aggregator.css,,qmr26rq+modules,,_comment,,_comment.css,,qmr26rq+sites,,_all,,_modules,,_date,,_date_api,,_date.css,,qmr26rq+modules,,_field,,_theme,,_field.css,,qmr26rq+modules,,_node,,_node.css,,qmr26rq+modules,,_search,,_search.css,,qmr26rq+sites,,_all,,_modules,,_ubercart,,_uc_order,,_uc_order.css,,qmr26rq+sites,,_all,,_modules,,_ubercart,,_uc_product,,_uc_product.css,,qmr26rq+sites,,_all,,_modules,,_ubercart,,_uc_store,,_uc_store.css,,qmr26rq+modules,,_user,,_user.css,,qmr26rq+modules,,_forum,,_forum.css,,qmr26rq+sites,,_all,,_modules,,_views,,_css,,_views.css,,qmr26rq+sites,,_all,,_modules,,_ctools,,_css,,_ctools.css,,qmr26rq+sites,,_all,,_modules,,_geshifilter,,_geshifilter.css,,qmr26rq+sites,,_all,,_themes,,_cti_flex,,_css,,_html-reset.css,,qmr26rq,Mcc.JkP424_v2x.css.pagespeed.cf.sCW_-YvQWr.css" type="text/css" media="all"/>


<link rel="stylesheet" href="http://citricguy.com/sites/all/themes/A.cti_flex,,_css,,_cti-flex-style.css,,qmr26rq+cti_flex,,_css,,_layout.css,,qmr26rq+cti_flex,,_css,,_color-schemes.css,,qmr26rq+cti_flex,,_css,,_local.css,,qmr26rq+cti_flex_citricguy,,_style.css,,qmr26rq,Mcc.mMJ2rgFlyi.css.pagespeed.cf._TWwFYZx_V.css" type="text/css" media="all"/>
<link rel="stylesheet" href="http://citricguy.com/sites/all/themes/cti_flex/css/A.print.css,qmr26rq.pagespeed.cf.E2xe0xKUg3.css" type="text/css" media="print"/>

<!--[if lte IE 7]>
<style type="text/css" media="all">@import url("http://citricguy.com/sites/all/themes/cti_flex/css/ie7.css?mr26rq");</style>
<![endif]-->

<!--[if lte IE 6]>
<style type="text/css" media="all">@import url("http://citricguy.com/sites/all/themes/cti_flex/css/ie6.css?mr26rq");</style>
<![endif]-->
  <script src="http://citricguy.com/misc,_jquery.js,,qv==1.4.4,Mjm.dNQkGkUhLU.js+misc,_jquery.once.js,,qv==1.2,Mjm.QOgkBiaBty.js+misc,_drupal.js,,qmr26rq,Mjm.iNYiGrRhoB.js+sites,_all,_modules,_google_analytics,_googleanalytics.js,,qmr26rq,Mjm.lVfZbNfcOp.js.pagespeed.jc.DmdKmuD2Ny.js"></script><script>eval(mod_pagespeed_3k_ERHiY8v);</script>
<script>eval(mod_pagespeed_Za3Shpf8BY);</script>
<script>eval(mod_pagespeed_xcc5yCgDcf);</script>
<script>eval(mod_pagespeed_WRe9WcU1Pe);</script>
<script type="text/javascript">//<![CDATA[
var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-722620-15"]);_gaq.push(["_trackPageview"]);(function(){var ga=document.createElement("script");ga.type="text/javascript";ga.async=true;ga.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ga,s);})();
//]]></script>
<script type="text/javascript">//<![CDATA[
jQuery.extend(Drupal.settings,{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"cti_flex_citricguy","theme_token":"sGxOHVtLHm9mbgmnbXskTLp00lxARBhXkpr0r5VUwu4","js":{"misc\/jquery.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1,"sites\/all\/modules\/google_analytics\/googleanalytics.js":1,"0":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"modules\/aggregator\/aggregator.css":1,"modules\/comment\/comment.css":1,"sites\/all\/modules\/date\/date_api\/date.css":1,"modules\/field\/theme\/field.css":1,"modules\/node\/node.css":1,"modules\/search\/search.css":1,"sites\/all\/modules\/ubercart\/uc_order\/uc_order.css":1,"sites\/all\/modules\/ubercart\/uc_product\/uc_product.css":1,"sites\/all\/modules\/ubercart\/uc_store\/uc_store.css":1,"modules\/user\/user.css":1,"modules\/forum\/forum.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"sites\/all\/modules\/geshifilter\/geshifilter.css":1,"sites\/all\/themes\/cti_flex\/css\/html-reset.css":1,"sites\/all\/themes\/cti_flex\/css\/cti-flex-style.css":1,"sites\/all\/themes\/cti_flex\/css\/wireframes.css":1,"sites\/all\/themes\/cti_flex\/css\/layout.css":1,"sites\/all\/themes\/cti_flex\/css\/color-schemes.css":1,"sites\/all\/themes\/cti_flex\/css\/local.css":1,"sites\/all\/themes\/cti_flex_citricguy\/style.css":1,"sites\/all\/themes\/cti_flex\/css\/print.css":1,"sites\/all\/themes\/cti_flex\/css\/ie7.css":1,"sites\/all\/themes\/cti_flex\/css\/ie6.css":1}},"googleanalytics":{"trackOutbound":1,"trackMailto":1,"trackDownload":1,"trackDownloadExtensions":"7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip"}});
//]]></script>
</head>
<body class="html front not-logged-in one-sidebar sidebar-first page-views fixed-layout full-background black_bg black_accent font-family-arial font-size-12 none">
  <div id="skip-link">
    <a href="#main-menu" class="element-invisible element-focusable">Jump to Navigation</a>
  </div>
    
<div id="page-wrapper"><div id="page" ">

  <div id="header"><div class="section clearfix">

    
          <a href="/" title="Home" rel="home" id="logo"><img src="http://citricguy.com/sites/default/files/xcitricguy_0.png.pagespeed.ic.bE00PtPIVY.png" alt="Home"/></a>
    
          <div id="name-and-slogan">
                              <h1 id="site-name">
              <a href="/" title="Home" rel="home"><span>citricguy.com</span></a>
            </h1>
                  
              </div><!-- /#name-and-slogan -->
    
    
  </div></div><!-- /.section, /#header -->

  <div id="main-wrapper"><div id="main" class="clearfix with-navigation">

    <div id="content" class="column"><div class="section">
                  <a id="main-content"></a>
                                      <div class="tabs"></div>
                          <div class="region region-content">
    <div id="block-system-main" class="block block-system first last odd">

      
  <div class="content">
    <div class="view view-homepage view-id-homepage view-display-id-page view-dom-id-70df3e9729f1bbe36bbbd46b4ffdbb26">
        
  
  
      <div class="view-content">
        <div class="views-row views-row-1 views-row-odd views-row-first">
    <div id="node-13" class="node node-code-snippit node-promoted view-mode-full clearfix" about="/snip/php-check-if-string-json" typeof="sioc:Item foaf:Document">

  
        <h2 property="dc:title" datatype="" class="node-title"><a href="/snip/php-check-if-string-json">PHP: Check If String Is JSON</a></h2>
    
  
      <div class="submitted">
      <span property="dc:date dc:created" content="2013-01-22T23:29:58-10:00" datatype="xsd:dateTime" rel="sioc:has_creator">Submitted by <span class="username" xml:lang="" about="/users/citricguy" typeof="sioc:UserAccount" property="foaf:name" datatype="">citricguy</span> on Tue, 01/22/2013 - 23:29</span>    </div>
  
  <div class="content">
    <div class="field field-name-body field-type-text-with-summary field-label-above"><div class="field-label">Body:&nbsp;</div><div class="field-items"><div class="field-item even" property="content:encoded"><p>A simple function to check if a string is valid JSON.</p>
<ol><li>function is_json($in) {</li>
<li>    <a href="http://www.php.net/json_decode">json_decode</a>($in);</li>
<li>    return (json_last_error() == JSON_ERROR_NONE);</li>
<li>}</li>
</ol></div></div></div><div class="field field-name-field-language field-type-taxonomy-term-reference field-label-above"><div class="field-label">Language:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/language/php" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">PHP</a></div><div class="field-item odd"><a href="/language/json" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">JSON</a></div></div></div>  </div>

  <ul class="links inline"><li class="comment_forbidden first last"><span><a href="/user/login?destination=node/13%23comment-form">Log in</a> to post comments</span></li>
</ul>
  
</div> <!-- /.node -->
  </div>
  <div class="views-row views-row-2 views-row-even">
    <div id="node-10" class="node node-blog node-promoted view-mode-full clearfix" about="/echo/linux-grep-returning-matched-patterns-and-inverting-results" typeof="sioc:Post sioct:BlogPost">

  
        <h2 property="dc:title" datatype="" class="node-title"><a href="/echo/linux-grep-returning-matched-patterns-and-inverting-results">Linux grep - returning matched patterns and inverting results.</a></h2>
    
  
      <div class="submitted">
      <span property="dc:date dc:created" content="2012-10-10T15:34:16-10:00" datatype="xsd:dateTime" rel="sioc:has_creator">Submitted by <span class="username" xml:lang="" about="/users/citricguy" typeof="sioc:UserAccount" property="foaf:name" datatype="">citricguy</span> on Wed, 10/10/2012 - 15:34</span>    </div>
  
  <div class="content">
    <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><h2>How can I get grep to only return the portion of a string that matches a regular expression, and not the entire line of text?</h2>
<hr/><blockquote><p>--- A snippit from the grep man pages ---<br/>
  -o<br/>
  --only-matching<br/>
    Show only the part of a matching line that matches PATTERN.</p>
</blockquote>
<hr/><p><span class="geshifilter"><code class="bash geshifilter-bash"><span style="color: #c20cb9; font-weight: bold;">uptime</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-o</span> <span style="color: #ff0000;">'load average:.*$'</span></code></span></p>
<p>This will cause grep to only return the portion of the document that matches a given regular expression.</p>
<pre><code>load average: 0.13, 0.15, 0.16
</code></pre><hr/><h2>Using 'grep' how can I invert the returned results?  In other words, how can I return lines that do not match a regular expression?</h2>
<blockquote><p>--- A snippit frmo the grep man pages ---<br/>
  -v<br/>
  --invert-match<br/>
    Invert the sense of matching, to select non-matching lines.</p>
</blockquote>
<p>The invert match switch causes grep to pipe out the lines of text that do not match the regular expression provided.</p>
<p><span class="geshifilter"><code class="bash geshifilter-bash"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lha</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> <span style="color: #ff0000;">'^d'</span></code></span></p>
<p>This will return a directory listing of all lines that do not start with 'd'.</p>
<pre><code>-rw-r--r--  1 josh josh  901 2012-10-07 23:23 awk
-rw-------  1 josh josh  73K 2012-10-10 12:51 .bash_history
-rw-r--r--  1 josh josh  220 2012-05-23 05:30 .bash_logout
-rw-r--r--  1 josh josh 3.1K 2012-10-08 23:31 .bashrc
</code></pre></div></div></div><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tags/grep" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">grep</a></div><div class="field-item odd"><a href="/tags/linux" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux</a></div></div></div>  </div>

  <ul class="links inline"><li class="blog_usernames_blog first"><a href="/blogs/citricguy" title="Read citricguy&#039;s latest blog entries.">citricguy&#039;s blog</a></li>
<li class="comment_forbidden last"><span><a href="/user/login?destination=node/10%23comment-form">Log in</a> to post comments</span></li>
</ul>
  
</div> <!-- /.node -->
  </div>
  <div class="views-row views-row-3 views-row-odd">
    <div id="node-9" class="node node-blog node-promoted view-mode-full clearfix" about="/echo/script-retrieval-usgs-earthquake-data-given-state" typeof="sioc:Post sioct:BlogPost">

  
        <h2 property="dc:title" datatype="" class="node-title"><a href="/echo/script-retrieval-usgs-earthquake-data-given-state">Script the retrieval of USGS earthquake data for a given state.</a></h2>
    
  
      <div class="submitted">
      <span property="dc:date dc:created" content="2012-10-09T16:19:01-10:00" datatype="xsd:dateTime" rel="sioc:has_creator">Submitted by <span class="username" xml:lang="" about="/users/citricguy" typeof="sioc:UserAccount" property="foaf:name" datatype="">citricguy</span> on Tue, 10/09/2012 - 16:19</span>    </div>
  
  <div class="content">
    <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This one-liner will snag any earthquakes in Hawaii that are of Magnitude 2.5 or greater from the last 30 days.</p>
<p><span class="geshifilter"><code class="bash geshifilter-bash"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-qO-</span> http:<span style="color: #000000; font-weight: bold;">//</span>earthquake.usgs.gov<span style="color: #000000; font-weight: bold;">/</span>earthquakes<span style="color: #000000; font-weight: bold;">/</span>feed<span style="color: #000000; font-weight: bold;">/</span>csv<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2.5</span><span style="color: #000000; font-weight: bold;">/</span>month <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'[Hh]awaii'</span></code></span></p>
<p>Atom, GeoJSON and GeoJSONP feeds are also available at <a href="http://earthquake.usgs.gov/earthquakes/feed/">http://earthquake.usgs.gov/earthquakes/feed/</a></p>
</div></div></div><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tags/wget" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">wget</a></div></div></div>  </div>

  <ul class="links inline"><li class="blog_usernames_blog first"><a href="/blogs/citricguy" title="Read citricguy&#039;s latest blog entries.">citricguy&#039;s blog</a></li>
<li class="comment_forbidden last"><span><a href="/user/login?destination=node/9%23comment-form">Log in</a> to post comments</span></li>
</ul>
  
</div> <!-- /.node -->
  </div>
  <div class="views-row views-row-4 views-row-even">
    <div id="node-8" class="node node-blog node-promoted view-mode-full clearfix" about="/echo/fail2ban-fixing-saslconf-ubuntu" typeof="sioc:Post sioct:BlogPost">

  
        <h2 property="dc:title" datatype="" class="node-title"><a href="/echo/fail2ban-fixing-saslconf-ubuntu">fail2ban: Fixing sasl.conf on Ubuntu</a></h2>
    
  
      <div class="submitted">
      <span property="dc:date dc:created" content="2012-10-08T16:10:10-10:00" datatype="xsd:dateTime" rel="sioc:has_creator">Submitted by <span class="username" xml:lang="" about="/users/citricguy" typeof="sioc:UserAccount" property="foaf:name" datatype="">citricguy</span> on Mon, 10/08/2012 - 16:10</span>    </div>
  
  <div class="content">
    <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>The default regex patterns used by fail2ban that locate failed login attempts do not work by default for Zimbra.</p>
<p>You will need to modify <strong>/etc/fail2ban/filters.d/sasl.conf</strong></p>
<p>Specifically, you will need to modify the <code>failregex</code> line.  Comment out, or replace the old line with the following.</p>
<p><code>failregex = \[&lt;HOST&gt;\]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed</code></p>
</div></div></div><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/tags/ubuntu" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">ubuntu</a></div><div class="field-item odd"><a href="/tags/fail2ban" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">fail2ban</a></div></div></div>  </div>

  <ul class="links inline"><li class="blog_usernames_blog first"><a href="/blogs/citricguy" title="Read citricguy&#039;s latest blog entries.">citricguy&#039;s blog</a></li>
<li class="comment_forbidden last"><span><a href="/user/login?destination=node/8%23comment-form">Log in</a> to post comments</span></li>
</ul>
  
</div> <!-- /.node -->
  </div>
  <div class="views-row views-row-5 views-row-odd">
    <div id="node-7" class="node node-code-snippit node-promoted view-mode-full clearfix" about="/snip/breakdown-text-file-awk" typeof="sioc:Item foaf:Document">

  
        <h2 property="dc:title" datatype="" class="node-title"><a href="/snip/breakdown-text-file-awk">Breakdown Text File With AWK</a></h2>
    
  
      <div class="submitted">
      <span property="dc:date dc:created" content="2012-10-07T17:46:05-10:00" datatype="xsd:dateTime" rel="sioc:has_creator">Submitted by <span class="username" xml:lang="" about="/users/citricguy" typeof="sioc:UserAccount" property="foaf:name" datatype="">citricguy</span> on Sun, 10/07/2012 - 17:46</span>    </div>
  
  <div class="content">
    <div class="field field-name-body field-type-text-with-summary field-label-above"><div class="field-label">Body:&nbsp;</div><div class="field-items"><div class="field-item even" property="content:encoded"><p><span class="geshifilter"><code class="awk geshifilter-awk">awk '<span style="color: #7a0874; font-weight: bold;">{</span> <span style="color: #0BD507; font-weight: bold;">print</span> <span style="color: #ff0000;">"<span style="color: #000099; font-weight: bold;">\n</span>Line"</span>, <span style="color: #4107D5; font-weight: bold;">NR</span><span style="color: #ff0000;">": "</span><span style="color:#000088;">$0</span>; <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">(</span>i=<span style="color: #000000;">1</span>; i<span style="color:black;">&lt;=</span><span style="color: #4107D5; font-weight: bold;">NF</span>;<span style="color:black;">++</span>i<span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #0BD507; font-weight: bold;">print</span> <span style="color: #ff0000;">"  Field"</span>, i<span style="color: #ff0000;">": "</span><span style="color:#000088;">$i</span> <span style="color: #7a0874; font-weight: bold;">}</span>'</code></span></p>
<p>This short AWK script will help you understand the layout of a space separated file.</p>
<p>As an example, here is what the output may look like after piping in <code>ls -lha</code></p>
<p><span class="geshifilter"><code class="bash geshifilter-bash"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lha</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print "\nLine", NR": "$0; for (i=1; i&lt;=NF;++i) print "  Field", i": "$i }'</span></code></span></p>
<p>This will output something similar to the following output.</p>
<div class="geshifilter">
<pre class="awk geshifilter-awk" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">Line <span style="color: #000000;">2</span><span style="color:black;font-weight:bold;">:</span> drwxr<span style="color:black;">-</span>xr<span style="color:black;">-</span>x <span style="color: #000000;">12</span> josh josh 4.0K <span style="color: #000000;">2012</span><span style="color:black;">-</span>09<span style="color:black;">-</span>07 <span style="color: #000000;">22</span><span style="color:black;font-weight:bold;">:</span><span style="color: #000000;">58</span> play</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">  Field <span style="color: #000000;">1</span><span style="color:black;font-weight:bold;">:</span> drwxr<span style="color:black;">-</span>xr<span style="color:black;">-</span>x</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">  Field <span style="color: #000000;">2</span><span style="color:black;font-weight:bold;">:</span> <span style="color: #000000;">12</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">  Field <span style="color: #000000;">3</span><span style="color:black;font-weight:bold;">:</span> josh</div></li><li style="font-family: monospace; font-weight: bold; font-style: italic;"><div style="font-family: monospace; font-weight: normal; font-style: normal">  Field <span style="color: #000000;">4</span><span style="color:black;font-weight:bold;">:</span> josh</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">  Field <span style="color: #000000;">5</span><span style="color:black;font-weight:bold;">:</span> 4.0K</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">  Field <span style="color: #000000;">6</span><span style="color:black;font-weight:bold;">:</span> <span style="color: #000000;">2012</span><span style="color:black;">-</span>09<span style="color:black;">-</span>07</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">  Field <span style="color: #000000;">7</span><span style="color:black;font-weight:bold;">:</span> <span style="color: #000000;">22</span><span style="color:black;font-weight:bold;">:</span><span style="color: #000000;">58</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">  Field <span style="color: #000000;">8</span><span style="color:black;font-weight:bold;">:</span> play</div></li></ol></pre></div>
</div></div></div><div class="field field-name-field-language field-type-taxonomy-term-reference field-label-above"><div class="field-label">Language:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/language/awk" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">AWK</a></div></div></div>  </div>

  <ul class="links inline"><li class="comment_forbidden first last"><span><a href="/user/login?destination=node/7%23comment-form">Log in</a> to post comments</span></li>
</ul>
  
</div> <!-- /.node -->
  </div>
  <div class="views-row views-row-6 views-row-even views-row-last">
    <div id="node-6" class="node node-code-snippit node-promoted view-mode-full clearfix" about="/snip/top-10-commands-used-bash" typeof="sioc:Item foaf:Document">

  
        <h2 property="dc:title" datatype="" class="node-title"><a href="/snip/top-10-commands-used-bash">Top 10 Commands Used In Bash</a></h2>
    
  
      <div class="submitted">
      <span property="dc:date dc:created" content="2012-10-07T17:09:01-10:00" datatype="xsd:dateTime" rel="sioc:has_creator">Submitted by <span class="username" xml:lang="" about="/users/citricguy" typeof="sioc:UserAccount" property="foaf:name" datatype="">citricguy</span> on Sun, 10/07/2012 - 17:09</span>    </div>
  
  <div class="content">
    <div class="field field-name-body field-type-text-with-summary field-label-above"><div class="field-label">Body:&nbsp;</div><div class="field-items"><div class="field-item even" property="content:encoded"><p><span class="geshifilter"><code class="bash geshifilter-bash"><span style="color: #7a0874; font-weight: bold;">history</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $2 }'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">uniq</span> <span style="color: #660033;">-c</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-rn</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-10</span></code></span></p>
<p>This will list the top 10 most popular commands available in your Bash history.</p>
</div></div></div><div class="field field-name-field-language field-type-taxonomy-term-reference field-label-above"><div class="field-label">Language:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/language/awk" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">AWK</a></div><div class="field-item odd"><a href="/language/bash" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Bash</a></div></div></div>  </div>

  <ul class="links inline"><li class="comment_forbidden first last"><span><a href="/user/login?destination=node/6%23comment-form">Log in</a> to post comments</span></li>
</ul>
  
</div> <!-- /.node -->
  </div>
    </div>
  
  
  
  
  
  
</div>  </div>

</div><!-- /.block -->
  </div><!-- /.region -->
              </div></div><!-- /.section, /#content -->

          <div id="navigation"><div class="section clearfix">

        <h2 class="element-invisible">Main menu</h2><ul id="main-menu" class="links inline clearfix"><li class="menu-218 first last active"><a href="/" class="active">Home</a></li>
</ul>
        
      </div></div><!-- /.section, /#navigation -->
    
      <div class="region region-sidebar-first column sidebar"><div class="section">
    <div id="block-system-navigation" class="block block-system block-menu first odd">

        <h2 class="block-title">Navigation</h2>
    
  <div class="content">
    <ul class="menu"><li class="first collapsed"><a href="/forum">Forums</a></li>
<li class="leaf"><a href="/examples/node_access">Node Access Example</a></li>
<li class="last leaf"><a href="/cart" title="View/modify the contents of your shopping cart or proceed to checkout.">Shopping cart</a></li>
</ul>  </div>

</div><!-- /.block -->
<div id="block-aggregator-feed-1" class="block block-aggregator last even">

        <h2 class="block-title">Drupal</h2>
    
  <div class="content">
    <div class="item-list"><ul><li class="first"><a href="http://drupal.stackexchange.com/questions/109795/layout-custom-forms-using-panels">Layout custom forms using Panels</a>
</li>
<li><a href="http://drupal.stackexchange.com/questions/108873/add-another-item-by-multivalued-fields-directly-from-node-or-entity-view-page/109540#109540">Answer by Citricguy for Add another item by multivalued fields directly from node (or entity) view page</a>
</li>
<li><a href="http://drupal.stackexchange.com/questions/108352/drupal-views-hover-over-image-and-display-above-like-ebay-and-amazon/108381#108381">Answer by Citricguy for Drupal Views - Hover over image and display above like EBAY and AMAZON?</a>
</li>
<li><a href="http://drupal.stackexchange.com/questions/108379/how-to-prevent-jquery-from-loading-during-ajax-callback/108380#108380">Comment by Citricguy on How to prevent jQuery from loading during ajax callback</a>
</li>
<li class="last"><a href="http://drupal.stackexchange.com/questions/108379/how-to-prevent-jquery-from-loading-during-ajax-callback/108380#108380">Comment by Citricguy on How to prevent jQuery from loading during ajax callback</a>
</li>
</ul></div><div class="more-link"><a href="/aggregator/sources/1" title="View this feed&#039;s recent news.">More</a></div>  </div>

</div><!-- /.block -->
  </div></div><!-- /.section, /.region -->

    
  </div></div> <!-- /#main, /#main-wrapper -->

  
  
      <div id="footer"><div class="section">
        <div class="region region-footer">
    <div id="block-system-powered-by" class="block block-system first last odd">

      
  <div class="content">
    <span>Powered by <a href="http://drupal.org">Drupal</a></span>  </div>

</div><!-- /.block -->
  </div><!-- /.region -->
    </div></div> <!-- /.section, /#footer -->
  
</div></div> <!-- /#page, /#page-wrapper -->

  </body>
</html>
