![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Script to count files and get the disk usgae on individual mail folders | phpfreak | Shell Programming and Scripting | 1 | 05-17-2008 05:15 PM |
| shell script to find and copy the files creted in the year 2006 to another directory | manas6 | Shell Programming and Scripting | 2 | 04-01-2008 04:04 AM |
| shell script: deleting files from a directory | onlyc | Shell Programming and Scripting | 1 | 07-09-2006 07:41 AM |
| Converting Shell script to Dos batch files | darwinkna | Shell Programming and Scripting | 1 | 05-12-2006 12:01 PM |
| UNIX Shell script to chec timeout period when collecting files in directory - HELP | Danny Fang | Shell Programming and Scripting | 1 | 03-23-2006 08:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
batch shell script to zip individual files in directory - help
help trying to figure out a batch shell script to zip each file in a directory into its own zip file
using this code but it does not work Quote:
Quote:
i have over 3000 files i need to zip up individualy files to be zipped are in this format 123.flv.3gp hopfully ending up like 123.flv.3gp.zip is the file structure the problem running a single zip command from shell seems to work ok thanks for help in advance |
|
||||
|
sorry to be a bit stupid but how or what do i change and where to make this work am i not doing the zip -j "$f.zip" "$f" part right or is there a problem, in the echo commands i was tying to run it with nohup ./3gptozip.sh & and ./3gptozip.sh but is that the problem thanks, i'm new to shell scripting by the way |
|
||||
|
The problem is that you need to list the files you want to zip on the command line, the script doesn't contain this information. "$@" contains the arguments passed to the script on the command line.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|