Grep for string and replace or insert a different string in each file
Posted on 2012-09-11
I have run into an issue in IE8 and IE9 on windows 7 that all of our pages that have flash files no longer display full screen like we want even though the object has height and width set to 100%. Apparently a change was made to IE that the default height and width of the html document and the body tag are no longer 100%, so I need to add a stylesheet into each file or add an inline style to the html and body tag...
so what I was thinking was to use Grep to identify all the files that contain .swf and then add a stylesheet to the header of each of those files, or do a replace on <html and <body to include an inline style...
I am under the impression that I could do this using Grep to pipe the content to AWK or SED but I would like help with the commands.