I am trying to extract the last word from the last line of a txt file.  

[![corner.txt](https://i.stack.imgur.com/2brCj.jpg)](https://i.stack.imgur.com/2brCj.jpg)

The result I want is just **Cup$2!**.

This is what I tried:

```
@echo off
SetLocal EnableDelayedExpansion
set L=1
for /F "tokens=2 delims=" %%a in (corner.txt) do (
  set line=%%a
  if !L!==7 set Line7=%%a
  set  /a  L=!L!+1
)

echo The word is %Line7%
pause

```

The result I'm getting is **The word is**.

What should I edit to get the above result?