Some of the country's most familiar stores will be closing hundreds of locations and cutting thousands of jobs.