I want to write a bash script to run a command and get the last line of the output of that command.
For example, the output of "cat /proc/zoneinfo" is:
Code:
Node 0, zone DMA
pages free 3948
min 2
low 2
high 3
scanned 0
spanned 4080
present 3807
nr_free_pages 3948
.....
.....
vm stats threshold: 70
all_unreclaimable: 0
prev_priority: 12
start_pfn: 6422528
inactive_ratio: 8
How can I get the last line in a separated format?