Question: Use Perl to process Disk Usage report. I would like to sort raw data from a file using only Perl. The file contains multiple lines

Use Perl to process Disk Usage report.

I would like to sort raw data from a file using only Perl. The file contains multiple lines looking like the three examples below:

/vol/vfiler_PROD1_DR_NFS7K_cmsp1/ 200GB 545MB 199GB 0%

/vol/vfiler_PROD1_DR_Moodle_Ful_7K01/ 10TB 10009GB 806GB 93%

/vol/vfiler_PROD1_DR_Moodle_LA_7K01/ 6144GB 4572GB 1571GB 74%

I would like to process the input file and output a sorted version of the file by the percentage (Last Column) in decending order, into a CSV file with each field seperated by a comma.

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!