I have two text files mount.txt and mount2.txt and I've been trying to separate new lines (lines that were not in mount.txt but are in mount2.txt) from old lines (lines that were in mount.txt but are not in mount2.txt). I know this must be possible with something like:
fc mount.txt mount2.txt >out.txt
for /F "tokens=*" %%A in (out.txt) do (
::separate Line)
The output of the fc command looks like this:
Comparing files mount.txt and MOUNT2.txt
***** mount
ITCMDLogo
CBS
***** MOUNT2
Logo
ITCMDSecondLogo
CBS
*****
***** mount
MozillaPlugins
Acknowledgements
ReadMe\Palemoon-Portable-license.txt
***** MOUNT2
MozillaPlugins
ReadMe\Palemoon-Portable-license.txt
*****
I'm in quite a pickle on how exactly to go about doing this, as I'm still very much a beginner on for /f loops and setlocals.