Sanjeev Sabhlok's notes on technology, hardware, gardening

Insert adsense / text into thousands of html files

This is a complicated beast.

On UNIX things should be easy but turn out to be rather complex, e.g.

http://stackoverflow.com/questions/32035948/edit-multiple-html-files-add-string-to-head

I’ve decided I don’t have time to fiddle with UNIX replacement of text. Instead, I’ve used FAR – Find And Replace on Windows to replace text and upload.

In particular, I’ve replaced <BODY> by <BODY> [adsense code] and </BODY> by [adsense code] </BODY>

 

 

Print Friendly

sabhlok

View more posts from this author

Leave a Reply

Your email address will not be published. Required fields are marked *