In bash I’m trying to display rounded (no decimals) download and upload speed in readable format i.e something like that:
Download 16KB Upload 200KB
I got this but its not quite working:
ifstat 1 1 | tail -n 1 | awk ' {printf "Down=%.0fn", $1 } printf {"KB"} {printf " Up=%.0f", $2}' {printf "KB"}