I have no idea how to do this but what I'd like is a batch script that searches a txt file for a certain substring, takes the line that the substring is in, removes everything before that substring (on that line) and and the substring itself before going on to search for the next occurrence of another substring before removing it and everything after it.
For instance if I had the following txt file:
I'd very much like the script to process all three lines, find /name/, remove it and everything in front of it, then go on to find the next inverted comma (") and remove it and everything after it to leave me with two names: steve and timm.
If anyone can hit me up with how to do this I'd be very very grateful. If this isn't possible in a batch script and there's a quick and easy alternative on windows (no Linux box atm so no bash:( ) I'd appreciate that as well.
Thanks in advance.