Find/Replace text in a file using a batch file

i need to replace a portion of a line of text with another line of text ex:

07/24/2012 06:30:00    <--what i start with
07/24/2012 06:30:00 Name=weather  <---is what i need it to look like

every day the date changes and i have about 20 of these lines to change every day, whats the easiest way to do this using a bat file, i want to be able to run it and it would open the file, change what needed to be changed then spit out the changed text file in another location. there are hundreds of lines in this text file that need to stay in the new one and not change only about 20 or so need to be changed. i dont need it to loop at all since every time i need to edit the file the text needed to change will be exactly the same and it will need to change the same number of lines each time. thanks in advance


ANSWERS:


One way using sed:

sed -e "s/\(.*\)/\1 Name=weather/" file.txt > /your/new/location/newfile.txt

Perhaps you should update your question, to include example input and expected output. But the above line should get you started.



 MORE:


 ? Searching a txt file for a line and deleting the subsequent 13 lines in a batch file
 ? Batch for insert/replace in a txt file in a fixed position
 ? Batch Script - Find and replace text in multiple files in a directory
 ? Find and replace line starts with specific value in text file via windows batch file
 ? Remove folders from txt file in windows cmd
 ? replacing line in txt file AFTER specific line
 ? How to concatenate 2 .csv files in 1 .csv file with multiple sheets using Batch commands
 ? How to remove strings from a text file using batch script?
 ? How to remove strings from a text file using batch script?
 ? How to remove strings from a text file using batch script?