LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-28-2009, 06:13 AM   #1
ZendVN
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Add | insert one file to multi .zip files?


First, im sorry because my English isnt good!
I have folder name "zipfiles" and have many .zip file in this folder. Now, i want add a file name mydomain.html into all these .zip file but i down know how to do Could you help me plz? Thanks you!
 
Old 10-28-2009, 06:26 AM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
Assuming you are in the folder that contains all the zip files, this should do what you need in 1 command:
#> for FILE in `ls *.zip`; do zip $FILE mydomain.html; done
 
Old 10-28-2009, 07:05 AM   #3
ZendVN
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Yeah, i got it! Thanks you very much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add a file to a zip, without including the entire path from root marvelade Linux - Newbie 6 02-19-2009 06:32 AM
Need help to unzip a .zip file with 2 files in it SanaJay Linux - Newbie 3 02-05-2009 03:43 AM
Archive manager not recognising ZIP files - suggests it's a text file. AnanthaP Ubuntu 4 12-27-2007 08:10 AM
Script to Add files to a Zip archive with out unzipping it !! prashix Programming 12 10-23-2007 10:19 AM
Created spanned zip files from a single file FatOldSun Linux - Software 2 01-11-2006 08:04 AM


All times are GMT -5. The time now is 02:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration