Search with grep and zip file results

If you want to save the files resulting from the grep search in a zip archive, use this command:

grep -lrZ "searchstring" ./ | xargs -0 zip -g nameOfZip.zip