What happened to the former family that was taken away from him? Just replaced like a commodity? What's the "lesson" here that I'm missing?
Larger questions legitimately arise here, such as yours, and the saga of Job isn’t intended to address them all. Presumably those people went to heaven if their souls were saved (only the Lord and they know what went on in that vein). The story should be appreciated as a deep look at the divine nature, not as an encyclopedic look at it.
It might help also to note that if God were caught up in reacting to what evil does, this side of the end times, then God would no longer be God for He would be at the behest of whatever evil wants to drag Him into countering. Think about it ... God has a solution to all of this, but we neither see it as we go through it nor are we privy to the Greath White Throne vagaries to come and what exists after the great judgment.
The lesson of the book of Job is that (like certain atheists) the devil seeks destroy the faith of children of God, and to murder, yet regardless of who executes justice, sinners get less than what they deserve in this life, while the author of life certainly has the right to allow the innocent to die and deliver them to a better existence, while making the evil that the devil or man does work for the good of those who love good and thus God.
And that God is omniscient (unlike some atheists who basically make judgments as if they were), which involves going thru trials in proportion to one's faith, in which God knows the temperature of the fire, and in which things temporarily occur that are contrary to the blessings of God, but that for such, "as ye are partakers of the sufferings, so shall ye be also of the consolation." "For our light affliction, which is but for a moment, worketh for us a far more exceeding and eternal weight of glory;" (2 Corinthians 4:17)
And which the unreasonable scorn of atheists as yourself will not change.
His former family blotted out and replaced like a manufactured commodity, as if the past didn't matter.
"..blotted out" except his wife, who sounded like the atheist, but this life is temporary, and apart fro eternity it is unfair, and your objection is really that that the author of life can not be just in allowing the death of sinners or the innocent, and cannot be effecting what is best for the latter those like Job, as if He was not omniscient and you are, based upon your presumption of moral superiority."
Sappy nonsense in the guise of comfort is more annoying than anything else. Then theyll spout the Calvinist nonsense about a spirit in dwelling that is not by my choice.
For years you have been ridiculing faith in God on this officially pro-God forum, which i also see elsewhere from atheists who cannot allow any reasonable answers, or that there are any, but i will let others judge.