This article explains and provide some examples of how to perform batch operations on your products.
The batch processing feature gives you the ability to query and filter on your entire product set, and then perform a task only on the batch of products that results from your query. This feature is especially useful for updating a group of products all at once so you don’t have to edit products individually.
...