Hello everyone.
I'm trying to find out how do I set a variable from the last line of the result of a function.
Example:
I use CAT to view a TXT file that contains 5 lines, I want to set a variable with the value of the 5th line (if the line it's not blank).
In batch I would just use the 'for /F "tokens=*" %%a in (file.txt) do set var=%%a'. I'm looking for something similiar to this.
Any tips?
Thanks in advance.
Att, Paulo Rocha