Question: 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

 Edit the python code above to do the following: (It should

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

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!