This is my input file.
STDEP:DEV=UPDR-5377&&-5407;
UPDR-5381 BUSY H'0 ALNEONO -
UPDR-5382 IDLE H'0 ALNEONO -
UPDR-53770 BLOC MBL NC H'0 -
UPDR-53771 BLOC MBL NC H'0 -
UPDR-53772 BLOC MBL NC H'0 -
UPDR-53773 BLOC MBL NC H'0 -
UPDR-53774 BLOC MBL NC H'0 -
UPDR-5699 LIBL H'1 VBYABYO MAINT
UPDR-5700 LIBL H'1 VBYABYO MAINT
UPDR-5701 LIBL H'1 VBYABYO MAINT
UPDR-5702 LIBL H'1 VBYABYO MAINT
UPDR-4253 BLOC ABL H'1 ODUAHRO MAINT
UPDR-4254 BLOC ABL H'1 ODUAHRO MAINT
UPDR-4255 BLOC ABL H'1 ODUAHRO MAINT
UPDR-6689 BLOC ABL H'1 ODUAHRO MAINT
I need to parse it, get values from each line between 46 and 52. At the end the unique values should be stored in a text file. For this input file the output should be:
type some_file.txt
ALNEONO VBYABYO ODUAHRO
The challenge for me is that it needs to be done in a Windows cmd line. Furthest I've made it is until this step
for /F "tokens=* delims=" %a in (KHMSC4_DELETE_check.txt) do @echo %a:~46,7%
which does not cut line at specified interval. Any idea is highly appreciated.