For example, if I have foo.tar.gz consisting of:
foo/
bar/
baz/
file1.png
What (GNU) tar options do I have to use to extract the file 'file1.png'
to ~/tmp without the directory hierarchy 'foo/bar/baz'?
Something like:
$ tar zx ~/tmp/file1.png f foo.tar.gz #This does not work...
Should produce:
~/tmp/
file1.png
Any thoughts?
TIA,
Erik.