After using grep command, i will give you a small example
grep test
test this is first line : 1
test this is second line : 2
test this is third line : 3
test this is fourth line : 4
How to filter the last line after grep command executed
finally i need the result 4
If I don’t misunderstand you:
$7is ‘the seventh column’ inawk.