Find and replace text
Posted: 08 Apr 2013 12:21
I was wondering if someone could help me write a batch file to find and replace text in a text file. I have web urls on a website and need to replace 5 specific html codes with the real characters. The 5 things I need to change throughout the text file are as follows
Find Replace
---- -------
%26 = &
%2F = /
%3A = :
%3D = =
%3F = ?
I will keep adding new urls to a text file; say named a.txt or something and I want the batch to parse the text file and replace the characters... I learn better by using examples and experimenting with them so could someone please write this file for me and I can see how it works. I am fairly familiar with cmd and batch etc..., I've just never needed to do this before. I would appreciate any help.
Find Replace
---- -------
%26 = &
%2F = /
%3A = :
%3D = =
%3F = ?
I will keep adding new urls to a text file; say named a.txt or something and I want the batch to parse the text file and replace the characters... I learn better by using examples and experimenting with them so could someone please write this file for me and I can see how it works. I am fairly familiar with cmd and batch etc..., I've just never needed to do this before. I would appreciate any help.