I am trying to fetch Some IDs from URL.

In my script I hit the URL using while loop and wget command and I save output in file.

Then in same loop I grep `XYZ User ID:` and 3 lines after this string and save it to another file.

When I open this output file I find following lines.

```
< p >XYZ User ID:< /p>

< /td >

< td>

< p>2989288174< /p>

```

So using `grep` or any thing else how can I print following output

```
XYZ User ID:2989288174

```