I need a batch file to read through the content of a text file and to make a new text file
my_file.txt
loc name="UAE" place=DUBAI
loc name="US" place=NY
loc name="INDIA" place=DELHI
I have a one text file with location names and state like below
location.txt
US NY
UAE DUBAI
INDIA DELHI
This location.txt has many rows, above is just an example.
Kindly provide a batch script which should read location.txt and make a text file like my_file.txt.
1 Answer