I wanted to find the partition that has the maximum disk space and it’s mount point. This is the script that Anuj and I (mostly Anuj) came up with.
Explanations:
- df gives us the disk space.
- The first awk sorts all the lines numerically based on the 2nd column, starting from the second line.
- The second awk prints the 6th column which gives the mounted partition information.
- Finally the combination of head and tail gives us the top result.
MAR
