Let's say I have a file containing the following two lines:
V_SOME_ID: Number(context.someid),
V_SOME_NAME: context.somename
How can I write a .bat file to remove the colon and everything after as well as all spaces? Hoping for a result that looks like this:
V_SOME_ID
V_SOME_NAME
Everything I have found so far on Google has been for doing this for variables, I have not found a good example that does it line by line for an entire file.
Edit: I need to remove the content line by inclusive of the ":"