$ tar -tzf myarchive.tar.gz docs/readme.txt docs/photo.jpg scripts/run.sh
For further reading, consult the man pages: