i need to extract some content from following information (source file)
* *
* * * * * * * * * User information . . . . . :
User name . . . . . . . . . : ABAX * * * * * * * * *
* User text . . . . . . . . . : Beatrice Raffaele *
Begin menu . . . . . . . . : *NONE
Group jobs . . . . . . . . : 15
End group jobs . . . . . . : *NO
Command line on menus . . . : *NO
Attention-key program . . . : *ACTIVE
Reference user . . . . . . : OPERATOR
=====================================================================================================================================
* * * * * * * * * User information . . . . . : User name . . . . . . . . . : ABCG * * * * * * * * *
* User text . . . . . . . . . : Barchiesi Giancarlo *
Begin menu . . . . . . . . : *NONE
Group jobs . . . . . . . . : 15
End group jobs . . . . . . : *NO
Command line on menus . . . : *NO
Attention-key program . . . : *ACTIVE
Reference user . . . . . . : OPERATOR
=====================================================================================================================================
and the list go on,,,
my desire output is
user name , User text , Begin menu , Group jobs , End group jobs , Command line on menus , ….
Beatrice .. , *NONE ,
Barchiesi ,
basically will have a column header and follow by the entries…
i read somewhere
for /f “tokens=*” %%a in (‘find /i “User name” ^<..\abc.txt’) do (
set %%a
(echo User name: !user name!
echo user text: !user text!
echo Begin menu : !Begin menu!
echo Group jobs : !Group jobs!
echo End group jobs : !End group jobs!
echo Command line on menus : !command line on menus!
echo Attention-key program : !Attention-key program!
echo Reference user : !Reference user!
)>>output.txt
)
but this doesn’t work on my case.. would appreciate someone reply …thanks!!!
EDIT:
Sorry for the typo
in fact the ouput shall be..
User name User text Begin menu ……
ABAX Beatrice Raffaele *NONE
ABCG Barchiesi Giancarlo *NONE
something like this… and continue to the rest of the row
🙂 thanks.. would appreciate for the help..
Please come back & tell us if your problem is resolved.