Process pages.txt