Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am working on a batch file and i have to extract the job name from the following line using GREP command.

E:\Source\TASK1.log:Name : SERVER/1234/JobDone_2X	UserId	AutoLogonUser Password


i have to grep output like

Name : SERVER/1234/JobDone_2X


What I have tried:

i have tried

<pre>rem grep -Po ("Name : ")(.*[^\t]) "Input.txt" > output.txt


but its not working.can you help me
Posted
Updated 24-May-17 2:59am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900