The first line uses curl to download the AMP file to 1.htm
The second line use sed to replace some elements in the HTML and writes it out to 2.htm