Sorry I should have explained what I am doing with the script.

I am trying to get rid of all the crap that is displayed in a backup log file and keep the outcome very basic, and log it to a central Backup Log for all servers.

Now the log file is very long, so I has to read in 132 lines, then because the Completed line could be on different lines depending on the open files, I had to do a search on lines 100 to 130.

Then it redirects the output to a file.

Hope that explains it.

Thanks

Richard Farthing