I'm having trouble creating a batch file that takes a file file.txt and removes the text after a delimiter and creates a new file with the changes.
Ex:
file.txt would contain:
ashlasfj/asdkasdkj/asdkjasd
jhsdkfjhsdf/ajhsjduias/asjhfhsd
the newfile.txt would keep everything prior to the first /:
ashlasfj
jhsdkfjhsdf
I was thinking of using a for loop:
for /f "tokens=1,* delims=/" %%A in (test.txt) do ( something here )