[Solved] search and move inside same file

Score
0
Vote Up
February 4, 2012 at 03:32:27 Pacific
Specs: Windows 7, i7/6 gigs

im trying to search 1000's of files, looking for all pages that have this line:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

if the HTML page does, then they look on the same page for everything between the <title></title> tags and move that block so its under the
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> line.

Any pointers in setting this batch up?

tx.


Jump to Best Answer ↓   Report •


#1
Vote Down
Score
0
Vote Up
February 5, 2012 at 00:36:13 Pacific

Best Answer

If that can be done entirely in batch, it would take some pretty impressive (and hard to follow) coding!

FIND will get you a list of files. The rest is pretty easily done in C or VB. Your batch can call the C or VB program as needed.


Reply ↓  Report •
Reply to Message Icon Start New Discussion
Related Posts

« Copy files from multiple ... batch file extract or mov... »