python - Delete lines in a file not started by a specific string : <p>Can you tell me a script in python to run on terminal on macOS, so I can open a .txt file and delete every lines not started by "2017" ?</p>

<p>Thakyou</p>
