Skip to content

Instantly share code, notes, and snippets.

@fvdm fvdm/
Created Jan 27, 2016

What would you like to do?
vn="/usr/bin/vnstat -i eth0 -s"
$vn | head -n 2 | tail -n 1 # header
$vn | tail -n 2 | head -n 1 # today
$vn | head -n 5 | tail -n 1 # month
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.