|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to write a script to zip files or directories?
hi. i need help on writing a script to zip up files or directories.
i need to write a script to copy a folder to a temporary folder and then zip it up using the zip -r foldrname command. but how do i put this in a script. |
|
#2
|
|||
|
|||
|
You can determine the commands you need to execute (and their order) then save each of those commands to a file. Pass that file to the proper interpreter (or shell) and presto.
Seems as though you have the commands already, the rest should be easy.
__________________
-- I'll provide you with reference points; if they dont work, refer to something else. My personal site: Basic geek randomness |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > How to write a script to zip files or directories? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|