Hi,
The command output below the Name line just want to take the next spot
User: Win32_Account.Domain="ader",Name="hasan"
User: Win32_Account.Domain="ader",Name="osman"
User: Win32_Account.Domain="ader",Name="hüseyin"
User: Win32_Account.Domain="ader",Name="ali"
I want to be like that, I wonder how can I do?
Name="hasan"
Name="osman"
Name="hüseyin"
Name="ali"
Thank you
Command output parser
Moderator: DosItHelp
Re: Command output parser
Code: Select all
FOR /F "tokens=3 delims=." %%G IN example.txt DO @echo %%G
Re: Command output parser
Is the last post your solution?
Otherwise I would suggest to use that:
Regards
aGerman
Otherwise I would suggest to use that:
Code: Select all
FOR /F "tokens=2 delims=," %%G IN example.txt DO @echo %%G
Regards
aGerman
-
- Posts: 319
- Joined: 12 May 2006 01:13
Re: Command output parser
download gawk for windows , then use this
Code: Select all
c:\test> gawk.exe -F"," "{print $NF}" file
Name="hasan"
Name="osman"
Name="hüseyin"
Name="ali"