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, Other, 2.10.2014 11:25:33, 2.10.2014 11:25:34, 0, 0, 0, 0, 0, 84, 0

1, 1, Es, Aulaweb, 2.10.2014 11:25:35, 2.10.2014 11:25:42, 218, 0, 0, 4, 0, 397, 0

The next 2 lines need NOT to be deleted.

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

- Note that the file contains hundreds of lines and these are only examples.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!