Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The extracted tgz contains a structure approximately like:

  • Source
    • header.h
    • bozo.h
    • dir2
      • anotherheader.h

The following:

tar xzf libm.tar.gz --strip-components=2 Libm-2026/Source/*.h/

extracts header.h, bozo.h and anotherheader.h. What would make it only extract the ones at the specified directory specifically – that is, only header.h and bozo.h?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.