alternative for Archieve


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting alternative for Archieve
# 1  
Old 11-22-2006
Question alternative for Archieve

Hi all ,

In order to zip the file ...
first we need to use TAR and then GZIP on the TAR file .....

Is there any other method for zipping the files directly as in windows ( winzip )


Regards,
Dhananjay
# 2  
Old 11-22-2006
Quote:
Originally Posted by dhananjayk
Hi all ,

In order to zip the file ...
first we need to use TAR and then GZIP on the TAR file .....

Is there any other method for zipping the files directly as in windows ( winzip )


Regards,
Dhananjay
Compress will do it however I believe the gzip is a better zip algorithimn.
# 3  
Old 11-24-2006
Quote:
Is there any other method for zipping the files directly as in windows ( winzip )
Im trying to use 'the dark side of the force' Smilie to guess what you mean: Are you looking for zip for unix, cause they exist !

ZIP for hpux http://hpux.connect.org.uk/hppd/hpux/Misc/zip-2.32/
ZIP for aix http://aixpdslib.seas.ucla.edu/packages/zip.html
ZIP for sun see http://sunfreeware.com/
# 4  
Old 11-24-2006
Quote:
Originally Posted by dhananjayk
In order to zip the file ...
first we need to use TAR and then GZIP on the TAR file .....
Not necessarily. You can do it in "one line". There are, at least, two possibilities:

- Your tar version supports "z" option:
Code:
# tar&compress
tar cvzf file.tar.gz (files you want to tar)
# uncompress&untar
tar xvzf file.tar.gz

- No "z" option:
Code:
# tar&compress
tar cvf - (files you want to tar) | gzip -c > file.tar.gz
# uncompress&untar
gunzip -c file.tar.gz | tar xvf -

Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with Alternative for NR==FNR

Hi, I have an issue with the below script nawk 'NR==FNR{a=$4" "$5}NR>FNR{print NF?$0:a"\n";if(/^cn:/) x=$0}' FS="" in1.txt in2.txt > out1.txt It is taking too long to get a string from in1.text, search for the string in in2.txt and create a new file out1.txt. Is there any alternative way we... (1 Reply)
Discussion started by: Samingla
1 Replies

2. Shell Programming and Scripting

Alternative to Sleep?

Greetings. I've been wondering about this one for some time: Is there an alternative to sleep in bash? The reason: I'd like to simply limit the amount of processor usage in continuous while : script scenarios without spawning endless sleep processes as well. After beating the manpages, I... (14 Replies)
Discussion started by: LinQ
14 Replies

3. Shell Programming and Scripting

Alternative for goto

#!/bin/sh label: echo sql poll v=`sqlplus -s <<! HR/HR set pages 0 echo off feed off select distinct status from emp where id=5; ! ` echo $v; echo it comes here after false if then echo if condition true sqlplus -l scott/tiger <<EOF select * from department; EXIT (2 Replies)
Discussion started by: kumaar1986
2 Replies

4. Shell Programming and Scripting

Archieve one weeks old txt files

Hi All, Am trying to write a script which does the archiving of *.txt files if it's one week old from the current date. /TK/Project_ATT/Results/ File format : -rw-r----- 1 root root 20562 Sep 11 10:24 UQ-CI01_FF_20130905_10H24M.txt -rw-r----- 1 root root 20562 Sep... (2 Replies)
Discussion started by: Optimus81
2 Replies

5. UNIX for Dummies Questions & Answers

Unix (compressed archieve, non-verbose)

I'm confusing with this question. :wall: Can any one tell me how to do and use which command? :confused: create a compressed archive of the "Test" directory and it's contents, called Test.tar.gz, and place it in the current directory. Use a non-verbose tar command with a single string, including... (5 Replies)
Discussion started by: wk9031
5 Replies

6. UNIX for Dummies Questions & Answers

archieve and zip the multiple file with no extension

Hi, I'm new to scripting. I need to find all the 10 files in the source directory and then archieve them to archive directory. The source files which im getting does not have any extensions just binary files. I need to find them by the file names and archive it. Directory also contains other... (1 Reply)
Discussion started by: etldeveloper
1 Replies

7. Solaris

vi alternative

Is there any other editor, installed by 'default' in Sparc Solaris10, besides vi? I'd like to avoid installing anything new. If not, how to make vi more user-friendly? thanks. (8 Replies)
Discussion started by: orange47
8 Replies

8. Shell Programming and Scripting

Alternative for wc -l

Hi techies .. This is my first posting hr .. Am facing a serious performance problem in counting the number of lines in the file. The input files i get will be in some 10 to 15 Gb of size or even sometimes more ..and I will load it to db I have used wc -l to confirm whether the loader... (14 Replies)
Discussion started by: rajesh_2383
14 Replies

9. UNIX for Advanced & Expert Users

What is command to extract single file from an archieve?

I just want to extract one sigle file from an .ear archieve instead of extracting whole ear. Can anyone help me on this? (4 Replies)
Discussion started by: harshal_dcx
4 Replies

10. Shell Programming and Scripting

du alternative in perl

I have a perl script that just does a `du -sk -x` and formats it to look groovy ( the argument can be a directory but usually is like /usr/local/* ) #!/usr/bin/perl use strict; use warnings; my $sizes = `du -x -sk @ARGV | sort -n`; my $total = 0; print "MegaBytes Name\n"; for(split... (1 Reply)
Discussion started by: insania
1 Replies
Login or Register to Ask a Question