Hello, I have an application log file, and I need to extract from this log a few lines to send it by e-mail, I would like to do this from a batch file, I have done in the past some batch files to send e-mails with BLAT, and recently with PowerShell, for these commands I can specify a file [let's say for example ->] emailbody.txt to be the email body.
I have an application log ApplicationLog.txt, with about 2000 lines.
What I want to do, is to find a unique string in ApplicationLog.txt and extract the 6 following lines to a new file emailbody.txt .
Thanks a lot for your help
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!