Hacker News new | ask | show | jobs
by duckmuck 3313 days ago
Can you explain to me what I am looking at here? (curl -o 1.htm... >2.htm)? And how I can use it to view an AMP page?
2 comments

It's two separate lines.

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

It saves the page after the filtering that is done in the command and you can open the 2.htm to view the page.