Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Edit the python code above to do the following: (It should run in linux terminal) 1a- Script should only print the name and size in

image text in transcribed

Edit the python code above to do the following: (It should run in linux terminal)

1a- Script should only print the name and size in bytes of every file with size over the threshold you set. 1b- Script should check if there are no files found over the size threshold and output a message stating this.

Hint:

-Use an if statement.

1a

-Size is stored in fields[4]

-If int fields[4] > number set by you

-Print

1b

-Fields[4] (size)

-Fields [8] (name)

-Print "no larger files found"

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

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

Prepare and properly label figures and tables for written reports.

Answered: 1 week ago