On Linux I'm extracting files from a tar
archive using
tar -xC / -f /tarFile.tar someFolder/[HD] video1.mp4
This works always fine but not in this case where file name contains square brackets. Tar response is
someFolder/[HD] video1.mp4: not found in archive
The file is extracted fine if I remove the square brackets.
I already tried both escaping all characters with \
and surrounding file name with '
. No luck.
Any hint? Thanks
tar --version
and shell you use (echo $SHELL
)? Can you include the version of commands which you tried with quoting and escaping?someFolder/[HD]
andvideo1.mp4
as separate arguments.