Question: In PYTHON: Navigate into data-shell/molecules and a) write command that counts the number of lines in each file and puts this in a file called

In PYTHON: Navigate into data-shell/molecules and a) write command that counts the number of lines in each file and puts this in a file called lines.txt. b) write a command that takes lines.txt sorts the files by size starting with the file with fewest lines and outputs to a new file: sorted.txt. c) Now rewrite a one-line command (pipe) that outputs (to screen) these two steps. d) Write a command that outputs (to screen) the name of third smallest file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets break down the problem step by step to provide a clear understanding and solution for each part ... View full answer

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!