Question: Use Perl to process Disk Usage report. I would like to sort data from a file using only Perl. The file contains multiple lines looking
Use Perl to process Disk Usage report.
I would like to sort 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
Get step-by-step solutions from verified subject matter experts
