字段的引用

Eg:

awk -F "'" '/^menu/{ print $2 }' /boot/grub2/grub.cfg

Untitled

awk -F "'" '/^menu/{ print x++, $2 }' /boot/grub2/grub.cfg

Untitled