How do I extract only files from a directory in a tar archive? I need to extract all the files in the directory, not specific files. For example, with a tar archive of this structure:
wordpress --wp-admin --wp-content --wp-includes --index.php --license.txt --readme.html
I want to extract only the 3 (or more) files in the wordpress directory not the sub-directories.
Note that the other solutions I could find on this site are about extracting specific files. My question is about extracting all files.