Hi Friends,
Can anyone help me out with compressing multiple files.
I have multiple files in directory , I have to compress these into a single file,
I tried using
gzip -r outfile.gz file1 file2 file3.
It is not working
Thanks in advance for your help
S :) (5 Replies)
Hi All,
I would like to archive some of the scripts below(USFINUM042006_01.CSV
USFINUM042006_02.CSV and USFINUM042006_03.CSV )and also use a wildcard e.g. <command> USFINUM*.CSV. Also there are a lot of similar files but I want only the three latest files to be compressed. Which is the best... (3 Replies)
Hello,
I am having difficulty compressing the files using compress or GZIP utility on NAS share NFS mounted on my linux server. Any one have idea on how to do this ? I get the followign error but the trying to compress the files
STRP2> compress STR_OUTBOUND_CDM_LOG_LOB.PRT2008_26.txt... (0 Replies)
I want to compress all the files which are three years older ..I have thousands of files...
1) This doesnt work
find ./ -type f -mtime +1176 -print | xargs -n1 -i tar -cvf {}
Errror
tar: Missing filenames
Probably because of -
find ./ -type f -mtime -1 -print returns -
"
./temp.txt"... (6 Replies)
Hi!
First off I'd like to stress that I'm a true dummy :)
I have a website with SSH access and since it has user generated content I want to backup my website every day end send it through FTP to a different server. I got it working for my mysql database, so the only thing remaining are the... (2 Replies)
Could someone please help?
I'm trying to compress all the files in a directory without extension. I know for typical files with extension, the command is something like:
tar -zcvf file.tar.gz *.doc
What is the command for files without extension? Thanks. (4 Replies)
Hi,
I have an application which creates the logs in a date wise.
like,
tomcat_access_log.2009-09-12.log
tomcat_access_log.2009-09-11.log
tomcat_access_log.2009-09-10.log
tomcat_access_log.2009-09-09.log
tomcat_access_log.2009-09-08.log
tomcat_access_log.2009-09-07.logNow my requirement is... (5 Replies)
Hi All !
We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows.
I have used the utility ZIP like the below.
zip -e <newfilename> df2_test_extract.dat
but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Hi ALL,
I am working on a folder where there are lot of files for the past one year. I need to compress a particular month files alone. suppose i need to compress the feb month files alone, what is the script we can use.
Thanks in advance (2 Replies)
the problem states "Write a script that compresses all the files in the directory. Make a directory and put some files in it. Also make a sub directory in your directory and put files in it also. Once you have this basic ability to compress all files within a directory, add to your script a menu of... (1 Reply)
Discussion started by: Brittany
1 Replies
LEARN ABOUT ULTRIX
ccat
compact(1) General Commands Manual compact(1)Name
compact, uncompact, ccat - compress and uncompress files, and cat them
Syntax
compact [name...]
uncompact [name...]
ccat [file...]
Description
The command compresses the named files using an adaptive Huffman code. If no file names are given, the standard input is compacted to the
standard output. The command operates as an on-line algorithm. Each time a byte is read, it is encoded immediately according to the cur-
rent prefix code. This code is an optimal Huffman code for the set of frequencies seen so far. It is unnecessary to prepend a decoding
tree to the compressed file since the encoder and the decoder start in the same state and stay synchronized. Furthermore, and can operate
as filters. In particular,
... | compact | uncompact | ...
operates as a (very slow) no-op.
When an argument file is given, it is compacted and the resulting file is placed in file.C; file is unlinked. The first two bytes of the
compacted file code the fact that the file is compacted. This code is used to prohibit recompaction.
The amount of compression to be expected depends on the type of file being compressed. Typical values of compression are: Text (38%), Pas-
cal Source (43%), C Source (36%) and Binary (19%). These values are the percentages of file bytes reduced.
The command restores the original file from a file compressed by If no file names are given, the standard input is uncompacted to the stan-
dard output.
The command cats the original file from a file compressed by without uncompressing the file.
The command is present only for compatibility. In general, the command runs faster and gives better compression.
Restrictions
The last segment of the file name must contain fewer than thirteen characters to allow space for the appended '.C'.
Files
compacted file created by compact, removed by uncompact
See Alsocompress(1)compact(1)