What ‘function’ will ‘update’ a post?

There is a function called wp_insert_post that takes a parameter for post ID. If the post ID is an ID that already exists, this function will update the post with the information you pass in the function parameters. I think using that function you could find a way to retrieve all of your post ID’s in an array and then use a foreach loop to update each one.