I can't seem to find a solution for this and it's driving me crazy. I know I can use
awk to print a column(s). I'm having trouble printing a specific column though because of the way my file system is arranged.
This is what I have when I run
Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vg_root-root 36623968 4484592 30278976 13% / tmpfs 961312 0 961312 0% /dev/shm /dev/sda1 516040 102896 386932 22% /boot
awk for the 1K-blocks column it returns values from other columns because of the length of the filesystem location. Basically this happens:
1K-blocks 4484596 961312 516040
How can I list the right column info?