Skip to content
Advertisement

Tag: tar

how to use untar() in R linux?

I’m getting this error when I use untar() command used: untar(tarfile = “a.rar”, list = TRUE) It works when I use on my PC (Windows 10) but does not works on another PC (Linux 20.04) Thanks Answer This isn’t correct: You should specify a tape archive file such as “a.tar”, rather than a RAR-format file. The underlying utility on Windows

How to generate a PAX Tar archive with an Global Extended Attributes (‘g’) initial entry?

In Linux, I am trying to generate an uncompressed PAX archive containing a Global Extended Attributes entry using either one of the following commands: A) Specifying the pax options (implies –xattrs): B) Specifying xattrs support (implies –format=pax): Both commands generate a file successfully, but when I open the file with my hex editor, the first entry has the ‘x’ type,

How to extract multiple *.tgz files to multiple directories using PERL?

I am learning PERL lang. I have forced (and little confused) the issue with extracting *.tgz files. My point which I want to achieve is to extract multiple *.tgz files to multiple folders. So the structure comes: I want to extract these files to directories: Can someone help me with this, or give some hints how to achieve it? Answer

Does tar exit code 123 always mean empty archive?

The tar man page only documents return codes 0, 1, and 2 but explains further: If a subprocess that had been invoked by tar exited with a nonzero exit code, tar itself exits with that code as well. This can happen, for example, if a compression option (e.g. -z) was used and the external compressor program failed. Another example is

The directory is being deleted too early

I’m trying to create a tar file from a directory’s contents using Codec.Archive.Tar, but I also want to clean up the directory once the tar file has been created. Here’s a small example which demonstrates my issue: When I call the function listFile e.g. from within ghci, I get back which I’m guessing is caused by the tar file being

Tar search results in .sh file

I have to tar a list of files, without path, that is a result of a find via sh (for crontab use). In ubuntu’s shell each command works fine but in .sh not. I tried with : And also with But both failed. May someone help? Alternatives ? Additional scenario info: /myfolder/ contains: one1.log one2.log one3.log two1.log two2.log I want

Variable as Tar file name in SunOs 5.10

I am trying to get the following result in the 1.files archived as tar with current date as a part of the tar name. 2.files removed once archived. /usr/sap/ST1/POC/backtest/*.txt has 2 txt files. This works fine as the file name is mentioned as arc_2017-02-28.tar. But when I tried this: The output is an error: tar: : No such file or

Advertisement