- 论坛徽章:
- 13
|
- > man zip
- add
- Update existing entries and add new files. If the archive does
- not exist create it. This is the default mode.
- -u
- --update
- Replace (update) an existing entry in the zip archive only if it
- has been modified more recently than the version already in the
- zip archive. For example:
- zip -u stuff *
- will add any new files in the current directory, and update any
- files which have been modified since the zip archive stuff.zip
- was last created/modified (note that zip will not try to pack
- stuff.zip into itself when you do this).
- Note that the -u option with no input file arguments acts like
- the -f (freshen) option.
复制代码
- > zip bookmarks_12-7-8.html.zip bookmarks_12-7-8.html
- adding: bookmarks_12-7-8.html (deflated 50%)
- > unzip -l bookmarks_12-7-8.html.zip
- Archive: bookmarks_12-7-8.html.zip
- Length Date Time Name
- -------- ---- ---- ----
- 205047 07-08-12 15:36 bookmarks_12-7-8.html
- -------- -------
- 205047 1 file
- > zip -u bookmarks_12-7-8.html.zip stopServices.sh
- adding: stopServices.sh (deflated 74%)
- > unzip -l bookmarks_12-7-8.html.zip
- Archive: bookmarks_12-7-8.html.zip
- Length Date Time Name
- -------- ---- ---- ----
- 102214 07-08-12 16:23 bookmarks_12-7-8.html.zip
- 607 06-14-12 16:02 stopServices.sh
- -------- -------
- 102821 2 files
复制代码 |
|