[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shell scripting



> The core loop is clearly 
> 
> >         for file in "$1"
> >  do
> >             filename=${file%.*}
> >             echo "Adding $file to $filename.zip..."
> >             $ZIP $ARGS "$filename" "$file" > /dev/null
> > 
> >             let "nofiles += 1"
> >         done
> 
> Hint: try quoting your args when you run the script. Read the bash docs,
> have fun.

Umm ... I have read the docs, and thought that
    for file in "$1"
was the correct way ..

It *does* run, but quits after zipping one file.

Sorry if I've missed something obvious...

Cheers,



Pete.



Reply to: