title: Sed replace all characters until first space
body: <p>I am trying to replace some paths in config file. To do that I am trying to use sed.</p>
  
  <p>My file looks something like that:</p>
  
  <pre><code>-Djava.util.logging.config.file=/tmp/tmp/tmp/config bla.bla
  </code></pre>
  
  <p>I want to replace <code>/tmp/tmp/tmp/config</code> and keep bla.bla untouched.
  According to <a href="http://regexpal.com/" rel="nofollow">http://regexpal.com/</a> and <a href="http://regexr.com?362qc" rel="nofollow">http://regexr.com?362qc</a> I should use </p>
  
  <p><code>sed -e 's/logging.config.file=[^\s]+/logging\.config\.file\=\/new/g' file</code></p>
  
  <p>But it doesnt work.</p>