Linux: how to zip files based on a find pattern

Scenario

Scenario

We need to find all csv files in a directory, compress them to single zip file, and finally delete the csv files.

Solutionfind ./report -maxdepth 1 -name '*.csv' | zip ./report/report.zip -m@

The find command returns the first level of directory ./report all files that matches *.csv pattern, then zip command appends each file to the ./report/report.zip file, -m parameter deletes the csv file after compression.