Answered step by step
Verified Expert Solution
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
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
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
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