I'm trying to extract a tarball using tar -xvf that's in the format (where * is any word character) *@*@*@*.tar.gz but I think tar is trying to find the file at a remote location. The error I get is for the command tar -xzvf tasf423@2012-02-22\@00:03:04\@ja41nf.tar.gz:
tar (child): Cannot connect to 2012-02-22@00: resolve failed
I tried using back slashes to escape it and even tried replacing the @ symbols with %40 but none of this seemed to work. Is there any way to extract a tarball using the tar command with an @ in its name?
Another example:
Maybe this example shows the problem a bit better:
# tar czvf 2022-02-10-00\:04.tar.gz 2022-02-10-00\:04
2022-02-10-00:04/
2022-02-10-00:04/dmesg.txt
tar (child): Cannot connect to 2022-02-10-00: resolve failed
2022-02-10-00:04/vmcore
tar: 2022-02-10-00:04.tar.gz: Wrote only 2048 of 10240 bytes
tar: Child returned status 128
tar: Error is not recoverable: exiting now
Note: The colon (:) does not have to be escaped; Bash's filename completion code did that.
In UNIX : is not considered to be an "evil" character (as it is in Windows).
tar -xvf "@*@.tar.gz"tar: Cannot connect to 2012-02-22@00: resolve failed