title: how to suppress directory names in tar archived files?
body: <p>Suppose I have the following directories and files</p>
  
  <pre><code>inc:
  inc/foo.h
  inc/bar.h
  inc/more.h
  src:
  src/foo.cc
  src/bar.cc
  src/more.cc
  </code></pre>
  
  <p>and I want to generate a tape archive using <code>tar</code> which contains some of those files (all with <code>foo</code> or <code>bar</code> in their name), but as if they are all in one single directory. Thus, after unpacking <em>via <code>tar -xf archive.tar</code></em> my archive somewhere, I have</p>
  
  <pre><code>somewhere/foo.h
  somewhere/bar.h
  somewhere/foo.cc
  somewhere/bar.cc
  </code></pre>
  
  <p>Can I do that just with tar and without moving/copying my files? How?</p>