How to zip each of the files?

Try this, it will create single file,

find . -name "*.epub" -print | zip source -@

It will create a zip file called "source.zip" and check out.

panyam: zip warning: missing end signature--probably not a zip file (did you
zip warning: remember to use binary mode when you transferred it?)
zip warning: (if you are trying to read a damaged archive try -F)

Rksiva: It works yet that's not what I want. I need each of the files in their own zip file. This puts all under one :confused:

On the target computer, what Operating System are you running and what version of "zip"/"unzip" ?
When copying the zip file from the unix server to the target computer, what method did you use for the copy?

My last try

 
while read file
do
zip ${file}".zip" ${file} 
done < ls "*.epub"

Try this out,

find . -name "*.jpg" | awk -F'/' '{ print $NF }' | sed 's/\(.*\)\.\(jpg\)/zip \1\.zip \1.txt/g' | sh

panyam: bash: syntax error near unexpected token `"*.epub"'

rksiva: zip warning: name not matched: Carlson.zip
and more of these warnings

methyl: Arch Linux with zip 3.0

I took the long way and Right Click > Compress'ed all the files...

Can u please provide us some sample epub filenames?

All the filenames;

For those who wanna know the language; it's Turkish (:

As I don't have "zip" utility I can't check. I did a try with gzip

 
ls *.epub | while read line
do
gzip "${line}"
done

So, ideally the zip too should work for you in the same way.

 
ls *.epub | while read line
do
zip ${file}".zip" ${file} 
done