Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a script using python that delete all entries in a file where the 3rd column from the left matches ES. For instance the next

Write a script using python that delete all entries in a file where the 3rd column from the left matches ES.

For instance the next 2 lines need to be deleted.

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

  1. The script shall delete all entries where the first 4 characters of the third feature matches Es_5 or Es_6

For instance. The next 2 entries need to be deleted

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,

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

Explain in detail how the Mughal Empire was established in India

Answered: 1 week ago

Question

Problem: Evaluate the integral: I - -[ze dx

Answered: 1 week ago

Question

Problem: Evaluate the integral: I = 1- 1 dx 9

Answered: 1 week ago