thx for reply,
the zcat seems like not working, i get the message that it's not a "not in gzip format".
I was checking this way, but there's something wrong:
what you think?
---------- Post updated at 05:17 PM ---------- Previous update was at 04:48 PM ----------
Is there a way I can check if a file is comppressed or not? (Be it tar/gzip or compress). trying to write a generic housekeeping scrit that will delete files over 6 months old and compress any uncompressed files if less than 6 months old. But not sure if there is a clever way to check except for... (4 Replies)
I want to read a directory full of compressed files and move the file to another directory if it meets certain criteria. I only want to look at the first line of the compressed file and if I find the string, do the move. I am currently using the following:
zgrep -R -L... (1 Reply)
I was wondering if there's a way to search within a file that's been compressed. i.e. if file a is inside file a.zip or a.gz, is there a a command that will retrieve the string of data I'm looking for in file a, and list which compressed file it found it in?
Please help!
Thanks. (8 Replies)
How we can view the content of the file,if it compressed (or) Zipped ,without uncompress ?
I have one file ,i compressed it,without uncompressing the file.Is it possible to see the content of the file? (2 Replies)
I simply need to compress all files in a directory that are not already compressed and that are older than 10 days?
I have this so far. I need to add to this so I don't try and compress file that are already compressed. Or if you think this can be simplified let me know. Thx.
find... (3 Replies)
Hi,
I'm trying to find all tar and compressed files (say gzip). I'm having to assume that the tar and gzip files may or may not have the correct extension (.tar .gz .tgz etc).
Any help appreciated (2 Replies)
i have a file 4d7a94d0.bbb.1292
when i do
file 4d7a94d0.bbb.1292
the ouput is below
4d7a94d0.bbb.1292: gzip compressed data - deflate method
and i run this command
gunzip -c 4d7a94d0.bbb.1292 | awk '{gsub("\"","")}/I_ACCOUNT_ID/{print $2}' RS=":|;" FS=","
i get... (3 Replies)
How can I ensure the folder that I tar and compress is good to be archive in DVD or tape? Must I uncompress and untar the file, or there is any way to tell the integerity of the compressed file before send to archive? I have bad experience on this, which the archive compressed file cold not be... (2 Replies)
Hi All,
Is there is any way to find the size of compressed file without doing decompression. The size should give the original uncompressed data size
Thanks
Arun (3 Replies)
Discussion started by: arunkumar_mca
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)