I have a text file generated by a weather forecasting program.
It has alot of data that doesn't work with a PHP script I use, so I need to delete it out manually.
What I need to do is automate this somehow - I need it to delete everything before a certain block of text that is always the same. The line that is always the same is " WXSIM text forecast for Glendale". So everything before that is deleted, and everything after stays.
Question
Mr. Black
Hi guys,
I have a text file generated by a weather forecasting program.
It has alot of data that doesn't work with a PHP script I use, so I need to delete it out manually.
What I need to do is automate this somehow - I need it to delete everything before a certain block of text that is always the same. The line that is always the same is " WXSIM text forecast for Glendale". So everything before that is deleted, and everything after stays.
Any ideas or solutions?
Thanks! :-)
Link to comment
Share on other sites
3 answers to this question
Recommended Posts