Zend certified PHP/Magento developer

Is there a way to get to linux terminal all the html code of a page including the result of the interpolated code?

I’m trying to create a bash script to get all the html code in order to pipe it after to grep or save it into a file and process it later. Mi issue is that cURL gives me the html but without the result of the interpolated code. I get the incomplete html with this type of content: {{ example.name }} Is there a way to get the “final” code? The “resolved” code I mean.