Dear experts
I have received a tar file containing several files with full path. Now I need to restore it in another system but when I want to extract files by using
tar -xvf tarfile
it wants to create all files with full paths again in new system in which I don't have enough previleges.
How... (4 Replies)
Can I extract files from an archive file (tar), where the filename includes the full directory path, to a different directory?
For example the archive files may have a filename of
/SrcFiles/XXX/filename.dat
and I want to extract it to /SrcFiles/YYY/filename.dat. Since the archive file... (1 Reply)
Can I extract files from an archive file (tar), where the filename includes the full directory path, to a different directory?
For example the archive files may have a filename of
/SrcFiles/XXX/filename.dat
and I want to extract it to /SrcFiles/YYY/filename.dat. Since the archive file was... (1 Reply)
Hi All,
I want to read the content of the particular file from tar.Z without extracting.
aaa.tar.Z contains a file called one.txt, I want to read the content of the one.txt without extracting.
Please help me to read the content of it.
Regards,
Kalai. (12 Replies)
Hi Gurus,
I have a .tar file which required untar to the new location. I list the content with –tvf its listing the files which are inside the tar, when I am extracting he file from tar its working fine, however once I am trying to extract the file at the new location I am unable to do so. I... (11 Replies)
I have tried:
tar -xfv mytarfile.tar archive/tabv/*
tar -xfv mytarfile.tar --wildcards 'archive/tabv/*'
tar -xf mytarfile.tar -v --wildcards 'archive/tabv/*'
tar -xfv mytarfile.tar --wildcards --no-anchored 'archive/tabv/*'
tar -xfv mytarfile.tar --wildcards `archive/tabv/*`
and none... (5 Replies)
Hello, I am currently dumping 30-40 reports on a Unix folder located here /home/apps/reports/prode/excel
I use K-shell to do this task. In that, I use the gzip command to compress these files. I want to be able to use a tar command to first load the entire directory into one file then gzip that... (2 Replies)
Hi,
I want to tar files and zip them in order to clean up space in directory. I have files like /path/file1 /path file2.
What I am trying to do is:
Option 1:
tar -cvf /path/file1 /path file2 | gzip > test.tar.gz
I got the file created. But while trying to extract the Tar and zipped file, I... (1 Reply)
Hi
I have a few hundred files with extension .tar.Z. These files were archived (tar) and compressed (Z) on a UNIX system. I need to unzip them but not extract them. In other words they need to go to .tar extension. I would like to do this on my MAC or on a windows pc. I do not have a UNIX... (3 Replies)
Discussion started by: kalbano
3 Replies
LEARN ABOUT DEBIAN
unp
unp(1) General Commands Manual unp(1)NAME
unp - a shell frontend for uncompressing/unpacking tools
SYNOPSIS
unp [-u] file [ files ... ] [ -- backend args ... ] ucat file [ files ... ]
unp is a small script with only one goal: Extract as many archives as possible, of any kind and from any path to the current directory,
preserving the subdirectory structure where needed. Is a Do-What-I-Want utility and helps managing several extraction programs without
looking for needed options for the particular tool or worrying about the installation of the needed program.
Run unp without arguments to see the list of supported archive formats.
The special version ucat acts as wrapper for commands that can output the extracted data to standard output, like bzip (bzcat), gzip
(zcat), tar, zip and others.
USAGE
unp extracts one or more files given as arguments on the command line. Additionally, it may pass some options to the backend tools (like
tar options) when they are appended after `--'.
There is also a special option (-u) which is very useful for extracting Debian packages. Using -u, unp extracts the package (i.e. the ar
archive) first, then extracts data.tar.gz in the current directory and then control.tar.gz in control/<filename>/.
NOTES
unp will try to decompress into a FILE.unp if it get trouble with existing files. But don't count on this feature, always look for free
working space before using unp.
Unlike gunzip, which decompresses the file in the target directory of the source file, unp uses the current directory for output.
AUTHOR
Development started by Andre Karwath <andre.karwath@informatik.tu-chemnitz.de>
Now maintained and packaged for Debian by Eduard Bloch <blade@debian.org>
18 Feb 2001 unp(1)