Skip to content

Instantly share code, notes, and snippets.

@fvdm fvdm/60-vnstat.sh
Created Jan 27, 2016

Embed
What would you like to do?
#!/bin/sh
vn="/usr/bin/vnstat -i eth0 -s"
echo
$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.