I have many files I need to zip into a single directory. I don't want to zip all the files in the directory, but only ones matching a certain query.
grep abc file-* > out.txt
to make a file with all the instances of "abc" in each file. I need the files themselves. How can I tell bash to zip only those files?