02-22-2007
compress -c filename > /directory/...filename.Z
rm filename
if you are creating the compressed file on the same filesystem, you still will not have enough room. Just as you don't if you try a single step compress.
Other alternatives are pack, gzip, and zip.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everyone, I am sort of new to shell scripting,
I have a bunch of files that begin with 'blah' and I want to rename those files with something different (renamedFile1, renamedFile2, renamedFileN). I don't want to go through each file and rename them with the mv command. Could I just use a for... (4 Replies)
Discussion started by: kcor
4 Replies
2. Shell Programming and Scripting
Hi,
We use an application that is dumping logs to a file on disk. However, this is dumping very verbosely and there is no method of turning down the logging level. We need to remove certain contents from these before they are commited to disk.
Has anybody got any ideas how I can do this... (3 Replies)
Discussion started by: harperonline
3 Replies
3. Solaris
Wats would be the best way to disable link based IPMP on the fly without loosing network connectivity ? (6 Replies)
Discussion started by: fugitive
6 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: sakthifire
4 Replies
5. Shell Programming and Scripting
Hi,
I am creating files in a folder on the fly with arbritrary names but same extension (say, ".img"). How can I read each filename from the folder through a script.
regards
Angshuman (2 Replies)
Discussion started by: angshuman_ag
2 Replies
6. What is on Your Mind?
This is great!
Lqh8e2KYIrU (8 Replies)
Discussion started by: Neo
8 Replies
7. HP-UX
Hi,
I have an old HPUX 10.20 server running Informix 7.23
I need to dump the database to get it off that hardware before it dies.
Unfortunately there is insufficient local diskspace to do so.
I have set up a linux box with sufficient disk onto which I can export the database.
Having... (1 Reply)
Discussion started by: fella
1 Replies
8. OS X (Apple)
Hi all...
Had an idea tonight which could really enhance shell scripting for me.
Yes I am aware there could be difficulties but......
Creating a C script inside the shell script to do a task, (a simple text print to stdout in
this example), compiling it on the fly, making sure it is... (4 Replies)
Discussion started by: wisecracker
4 Replies
9. Shell Programming and Scripting
Hi all,
I am calling a zsh script from batch file .
This zsh just removes the trigger file in a particular directory.File name is passed as a parameter from the batch file Problem is this batch is called in multiple other batch files and sometimes system says file cant be used as it is used... (4 Replies)
Discussion started by: Hypesslearner
4 Replies
GZEXE(1) BSD General Commands Manual GZEXE(1)
NAME
gzexe -- create auto-decompressing executables
SYNOPSIS
gzexe [-d] file ...
DESCRIPTION
The gzexe utility uses gzip(1) to compress executables, producing executables that decompress on-the-fly when executed. This saves disk
space, at the cost of slower execution times. The original executables are saved by copying each of them to a file with the same name with a
'~' suffix appended. After verifying that the compressed executables work as expected, the backup files can be removed.
The options are as follows:
-d Decompress executables previously compressed by gzexe.
The gzexe program refuses to compress non-regular or non-executable files, files with a setuid or setgid bit set, files that are already com-
pressed using gzexe or programs it needs to perform on-the-fly decompression: sh(1), mktemp(1), rm(1), echo(1), tail(1), gzip(1), and
chmod(1).
SEE ALSO
gzip(1)
CAVEATS
The gzexe utility replaces files by overwriting them with the generated compressed executable. To be able to do this, it is required that
the original files are writable.
BSD
January 26, 2007 BSD