18
2
I'm trying to create a script to extract only jpeg pictures from an archive containing many kind of files.
To do so, I tried to use:
tar -xf MyTar.tar *.jpg
but it failed (*.jpg not found) and suggest me to use "--wildcard". So I tried
tar -xf MyTar.tar --wildcard *.jpg
I did that, but then the same error and a different warning saying to me that the option "--wildcard" is ambiguous.
I've been over the man pages for tar, but didn't find a clue about the problem.
Which tar and which version? Paste the results of
tar --version
– smci – 2017-11-28T06:14:35.117