title: How to get small part of a command output
body: <p>Following this post <a href="http://blog.zwiegnet.com/linux-server/get-centosred-hat-original-system-install-date/" rel="nofollow">http://blog.zwiegnet.com/linux-server/get-centosred-hat-original-system-install-date/</a> I would like to get the Linux installation date.</p>
  
  <pre><code>Process p = Runtime.getRuntime().exec("rpm -qi basesystem");
  </code></pre>
  
  <p>Can you tell me how I can execute the command and capture only the installation date as show into the post.</p>
  
  <p>I want to get the complete output and filter the content using Java. And the final result should be something like this for example:</p>
  
  <pre><code>Thu 28 Nov 2013 06:01:06 PM EST
  </code></pre>