I am trying to extract part of a line using "awk". My requirement is to extract the value $6 (which is the last parameter) from a line. As the sixth value contains some space, i am getting only part of the string. so i am trying to extract from $6 to the end of the buffer.
How to do it using awk?
Here is the data. This is the output of "df" command.
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
35772016 12316720 21608820 37% /
/dev/hda1 101086 13492 82375 15% /boot
tmpfs 451920 0 451920 0% /dev/shm
/dev/sda1 1013284 -7804 1021088 0% /media/LEXAR MEDIA
I have to extract the last field i.e mount point.
In the last line, the mount point has a space. so how to extract "/media/LEXAR MEDIA" from this line?