<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trim a zip code to 5 characters in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Trim-a-zip-code-to-5-characters/m-p/24203#M96604</link>
    <description>&lt;P&gt;if your zip codes are in a field called ZIP, that could be done by&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | eval SHORT_ZIP = substr(ZIP, 1,5) | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2013 20:40:28 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-05-03T20:40:28Z</dc:date>
    <item>
      <title>Trim a zip code to 5 characters</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trim-a-zip-code-to-5-characters/m-p/24202#M96603</link>
      <description>&lt;P&gt;This has to be an easy answer...I am just not seeing it or it is just a warm Friday and my brain is asleep.&lt;/P&gt;

&lt;P&gt;I have a column of results with zip codes e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;94101 
94102
941031514
941321600
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to cut out the last 4 characters (if they exist).  So all the results are 5 characters only&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 20:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trim-a-zip-code-to-5-characters/m-p/24202#M96603</guid>
      <dc:creator>ccsfdave</dc:creator>
      <dc:date>2013-05-03T20:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trim a zip code to 5 characters</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trim-a-zip-code-to-5-characters/m-p/24203#M96604</link>
      <description>&lt;P&gt;if your zip codes are in a field called ZIP, that could be done by&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | eval SHORT_ZIP = substr(ZIP, 1,5) | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 20:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trim-a-zip-code-to-5-characters/m-p/24203#M96604</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-03T20:40:28Z</dc:date>
    </item>
  </channel>
</rss>

