| | |
Problem updating zip file?
Thread Solved |
•
•
Join Date: Oct 2006
Posts: 179
Reputation:
Solved Threads: 2
Hi all
I just thought about backing up my home directory to a zip file so I used
Then I read about the argument so I found a file called readme.txt in my home directory opened it and added "Hello World" to the bottom line then performed the
command but it didn't update the readme.txt file to include "Hello World" on the last line.
Its probably something simple but can someone help me out please?
Many thanks
HLA91
I just thought about backing up my home directory to a zip file so I used
zip backup-13-jul-09 .
Then I read about the argument so I found a file called readme.txt in my home directory opened it and added "Hello World" to the bottom line then performed the
zip -u backup-13-jul-09 .
Its probably something simple but can someone help me out please?
Many thanks
HLA91
You know your a geek, if you introduce your wife as "mylady@home.wife"
I dont think your command worked:
What I did to create the zip archive:
Now appending text an updating:
I think you probably had an error when you created the archive.
bash Syntax (Toggle Plain Text)
sk@sk:~/zip$ zip backup . zip error: Nothing to do! (backup.zip)
What I did to create the zip archive:
bash Syntax (Toggle Plain Text)
sk@sk:~/zip$ ls readme.txt sk@sk:~/zip$ tail -1 readme.txt test123 sk@sk:~/zip$ zip -r backup ../zip adding: ../zip/ (stored 0%) adding: ../zip/readme.txt (stored 0%)
Now appending text an updating:
bash Syntax (Toggle Plain Text)
sk@sk:~/zip$ cp backup.zip .backup.zip sk@sk:~/zip$ tail -2 readme.txt test123 sk@sk:~/zip$ echo "hello, world" >> readme.txt sk@sk:~/zip$ zip -u backup * adding: readme.txt (stored 0%) sk@sk:~/zip$ diff .backup.zip backup.zip Binary files .backup.zip and backup.zip differ sk@sk:~/zip$ unzip backup.zip Archive: backup.zip warning: skipped "../" path component(s) in ../zip/ creating: zip/ warning: skipped "../" path component(s) in ../zip/readme.txt extracting: zip/readme.txt replace readme.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: r new name: readme2.txt extracting: readme2.txt sk@sk:~/zip$ tail -2 readme2.txt test123 hello, world
I think you probably had an error when you created the archive.
![]() |
Similar Threads
- Reading file names from a zip file (Visual Basic 4 / 5 / 6)
- Extracting a zip file. (Visual Basic 4 / 5 / 6)
- Problem updating a JLabel?? (Java)
- zip file download from web browsers (Web Browsers)
- Need some C/C++ code to unzip a zip file. (C++)
- zip file upload (PHP)
- Re: Problem in updating project for Microsoft Project 2002 and 2003 (Windows Software)
- zip file extraction (Java)
Other Threads in the *nix Software Forum
- Previous Thread: .ithmb conversion
- Next Thread: rndc: connect failed: 127.0.0.1#953: connection refused
| Thread Tools | Search this Thread |






