Sponsored Content
Top Forums Shell Programming and Scripting Compress the contents of a directory while copying data into it Post 302275989 by user1602 on Monday 12th of January 2009 07:53:18 PM
Old 01-12-2009
Thanks Jerry

But my requirement is to compress the entire directory and not individual files. Although compressing individual files does the job, I will have to make several changes to already existing procedures and scripts for restoring data from the backups, if need arise.

Again thanks for your reply.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to compress a directory on a Sun Solaris 5.7 ?

Hi, Is there any utility to compress an entire directory on a Sun Solaris 5.7 ? Something like "compressdir" on other flavours of Unix ? Thanks (4 Replies)
Discussion started by: sameerdes
4 Replies

2. Shell Programming and Scripting

How to Compress files before moving them in a directory

I need a shell script that zips a file before moving them..please help (3 Replies)
Discussion started by: godalle
3 Replies

3. Shell Programming and Scripting

compress Directory

Hi Friends, I have a directory under which 10 more directories are there. In each 10 directories there are several files. I want to do FTP. But in FTP we cannt Transfer the main directory. each Time we have to go to the respective directry and then we have to to FTP. For this instance I... (9 Replies)
Discussion started by: deep_kol
9 Replies

4. Shell Programming and Scripting

Copying subdirectories of a directory to some other directory and renaming them

Hi, I am a newbie in shell scripting. I have to copy a particular sub-directory (data) from a large no. of directories (all in the same folder) and paste them to another directory ( /home/hubble/data ) and then rename all the subdirectories (data) as the name of its parent directory. please... (8 Replies)
Discussion started by: sholay
8 Replies

5. Shell Programming and Scripting

Archive directory script with tar/compress

Hi all I need to write a script that archives all files with a certain date in the filename, to another location. It has to run on a AIX using tar/compress or another standard AIX tool. The directory will have x files, each prefixed with a date like yyyymmdd_desc.csv. I need all to... (7 Replies)
Discussion started by: AIXfrog
7 Replies

6. UNIX for Dummies Questions & Answers

Help with searching for a file in a directory and copying the contents of that file in a new file

Hi guys, I am a newbie here :wall: I need a script that can search for a file in a directory and copy the contents of that file in a new file. Please help me. :confused: Thanks in advance~ (6 Replies)
Discussion started by: zel2zel
6 Replies

7. Shell Programming and Scripting

compress the data and append into a text file

Following is the code: ------------------------------ a=100 b=200 c=300 touch testfl.txt.gz chmod 664 testfl.txt.gz echo $a|gzip >> "testfl.txt.gz" echo $b|gzip >> "testfl.txt.gz" echo $c|gzip >> "testfl.txt.gz" ------------------------------ There is a requirement as follows. I need... (1 Reply)
Discussion started by: kmanivan82
1 Replies

8. Shell Programming and Scripting

script to compress files in directory that changes its name every day

Hi all I have the following script that should compress a file in a directory: # compress log files older than 2 days find /u01/easydone/DBDUMPS/*.dmp -mtime +2 -exec gzip {} \; BUT the problem is that these files that I want to compress are inside a directory with following format: ... (5 Replies)
Discussion started by: fretagi
5 Replies

9. UNIX for Dummies Questions & Answers

How do I compress all files in a directory?

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

10. UNIX for Beginners Questions & Answers

Copying Contents of a file

Hello all. Is there a command to copy the contents of one file into another file as the first line? (1 Reply)
Discussion started by: 2metal4u
1 Replies
makeself(1)						      General Commands Manual						       makeself(1)

NAME
makeself - An utility to generate self-extractable archives. SYNTAX
makeself [options] archive_dir file_name label [startup_script] [args] DESCRIPTION
This program is a free (GPL) utility designed to create self-extractable archives from a directory. OPTIONS
The following options are supported. -v, --version Prints out the makeself version number and exits. -h, --help Print out help information. --gzip Compress using gzip (default if detected). --bzip2 Compress using bzip2. --compress Compress using the UNIX 'compress' command. --nocomp Do not compress the data. --notemp The archive will create archive_dir in the current directory and uncompress in ./archive_dir. --copy Upon extraction, the archive will first copy itself to a temporary directory. --append Append more files to an existing makeself archive. The label and startup scripts will then be ignored. --current Files will be extracted to the current directory. Implies --notemp. --header file Specify location of the header script. --follow Follow the symlinks in the archive. --nox11 Disable automatic spawn of an xterm if running in X11. --nowait Do not wait for user input after executing embedded program from an xterm. --nomd5 Do not create a MD5 checksum for the archive. --nocrc Do not create a CRC32 checksum for the archive. --lsm file LSM file describing the package. AUTHORS
Makeself has been written by Stephane Peter <megastep@megastep.org>. This man page was originally written by Bartosz Fenski <fenio@o2.pl> for the Debian GNU/Linux distribution (but it may be used by others). 2.1.4 makeself(1)
All times are GMT -4. The time now is 01:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy