awk & division

vmstat|awk '{print $3}'|tail -1

returns

6250511

, but what I need is

24416

, which is

6250511 divided by 256

.

Please advise.

Thank you so much

Just do the division before printing:

awk '{print $3/256}'
1 Like

YES! that works fine!
Thank you so much.