i am trying to extract a line containing a string from a log file. i am using windows command line findstr command to retrieve it. the command i used is with the following syntax : findstr string file.log and the line gets printed.
when trying to store the line in a variable i get the following:
how do i store the line in a variable?