omittag

How can I validate large numbers of files with search and replace?

痴心易碎 提交于 2019-12-07 07:07:28
问题 I am currently validating a client's HTML Source and I am getting a lot of validation errors for images and input files which do not have the Omittag. I would do it manually but this client literally has thousands of files, with a lot of instances where the is not . This client has validated some img tags (for whatever reason). Just wondering if there is a unix command I could run to check to see if the does not have a Omittag to add it. I have done simple search and replaces with the

How can I validate large numbers of files with search and replace?

徘徊边缘 提交于 2019-12-05 17:33:39
I am currently validating a client's HTML Source and I am getting a lot of validation errors for images and input files which do not have the Omittag. I would do it manually but this client literally has thousands of files, with a lot of instances where the is not . This client has validated some img tags (for whatever reason). Just wondering if there is a unix command I could run to check to see if the does not have a Omittag to add it. I have done simple search and replaces with the following command: find . \! -path '*.svn*' -type f -exec sed -i -n '1h;1!H;${;g;s/<b>/<strong>/g;p}' {} \;