The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help me While zipping the file Jolly UNIX for Advanced & Expert Users 7 05-11-2007 10:05 AM
Zipping dreams5617 UNIX for Dummies Questions & Answers 1 02-11-2007 08:03 PM
zipping in a loop kotasateesh Shell Programming and Scripting 2 01-10-2007 08:14 AM
zipping across platforms MizzGail UNIX for Dummies Questions & Answers 8 05-19-2005 01:01 AM
Zipping with password or encryption dsimpg1 UNIX for Dummies Questions & Answers 2 09-21-2001 12:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-25-2006
dreams5617 dreams5617 is offline
Registered User
  
 

Join Date: Jul 2004
Location: USA
Posts: 52
Exclamation Zipping the dir

Hi,

Ex: Directory /u01/par
If a directory contains all the below files:
a.lst
b.lst
c.lst
d.lst
......etc
i have 50 files in this directory.

How to(command to) zip all the files in this directory into a single zip file.

Thanks
  #2 (permalink)  
Old 07-26-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,796
Quote:
Originally Posted by dreams5617
Hi,

Ex: Directory /u01/par
If a directory contains all the below files:
a.lst
b.lst
c.lst
d.lst
......etc
i have 50 files in this directory.

How to(command to) zip all the files in this directory into a single zip file.

Thanks
Did you check man zip

Code:
zip -r /path/to/new/zipfile /u01/par
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0