@echo off
setlocal enabledelayedexpansion
cd . | clip
set "line_no=1"
for /f "usebackq tokens=1,3*" %%A in ("em4me.txt") do (
if "%%A"=="identifier" (
set /a line_no+=1
if !line_no! EQU 2 (
echo %%B| clip
echo Copied to clipboard - %%B
set "IDENT1=%%A"
set "IDENT2=%%B"
set "IDENT3=%%C"
goto copied
)
)
)
:copied
echo.
echo %IDENT1%
echo %IDENT2%
echo %IDENT3%
pause >nul
em4me.txt >>identifier 1-siji loro telu papat limo enem
identifier 2-satu dua tiga empat lima enam
identifier 3-one two three four five six
identifier 4-setong duek tellok empak lemak nemenemtakieh
for /f "usebackq tokens=1,3*" (%%A first word, %%B third word, %%C third word and the rest)
1=%%A (identifier)
3=%%B (third word start from identifier)
*=%%C (third and rest)
if "%%A"=="identifier" (serach after identifier as %%A)