Question
1-Write a script in Python that delete all entries from a file where the 3 rd column from the left matches ES. For example: 1,
1-Write a script in Python that delete all entries from a file where the 3rd column from the left matches ES.
For example:
1, 1, Es_1_1, Study_Es_1_1, 2.10.2014 11:27:18, 2.10.2014 11:27:45, 165188, 0, 0, 4, 0, 715, 0
1, 1, Es_1_1, Deeds_Es_1_1, 2.10.2014 11:27:46, 2.10.2014 11:27:49, 234, 0, 0, 2, 0, 214, 0
2- Write a script in Python that delete all entries from a file where the first 4 characters of the third feature matches Es_5 or Es_6
For example:
5, 27, Es_5_1, Blank, 20.11.2014 11:11:41, 20.11.2014 11:11:41, 0, 0, 0, 1, 0, 43, 0
5, 27, Es_6_1, TextEditor_Es_5_1, 20.11.2014 11:11:42, 20.11.2014 11:11:54, 9066, 0, 0, 1, 0,
- Note that the file contains hundreds of lines and these are only examples.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started