I want to capture the 2nd word( i.e. the date) from the 2nd line from the below output of a command(let it be xyz)
Data source CODA enabled.
=== 03/13/19 01:45:00 PM
Instance : 0
GBL_COLLECTOR : Nums 12.02.008
GBL_INTERVAL : 299
I am using the below syntax, but getting error.
For /f “tokens=2” %a in (‘xyz | findstr == ‘) do echo %a
Can anyone help me find the exact syntax to capture the date in the 2nd line ?