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.htmlI 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.
Tar: Extract only files (not sub-directories)
tar