title: Get part of a string in bash
body: <p>I have a few log files and I grep them for specific string:</p>
  
  <pre><code>grep UncategorizedLdap *
  </code></pre>
  
  <p>and I get ~33 results:</p>
  
  <pre><code>2009-01-01:org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: [LDAP: error code 1 - Operations Error]; remaining name 'ou=ABC'
  2009-01-02:org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: [LDAP: error code 1 - Operations Error]; remaining name 'ou='
  2009-01-02:org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: [LDAP: error code 1 - Operations Error]; remaining name 'ou=ABD'
  2009-01-03:org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: [LDAP: error code 1 - Operations Error]; remaining name 'ou=ABE'
  ...
  </code></pre>
  
  <p>How can I modify grep call to return only</p>
  
  <pre><code>ou=ABC
  ou=
  ou=ABD
  ou=ABE
  ...
  </code></pre>
  
  <p>?</p>