I'm using vnstat together with conky. To show the monthly traffic I'm mixing vnstat and grep to find the month. The command to collect the data is
${execi 3600 vnstat -m -i wlan0 | grep "$(date "+%h")" | awk '{print $3 $4}'}
but the problem is that vnstat returns the month in English (Dec for December) and date returns it in Portuguese (Dez for Dezembro).
So my command is not working for the monthly traffic. Any help?
LANGonly overrides a locale setting throughLANG. It doesn't override a locale setting throughLC_TIME. – Gilles 'SO- stop being evil' Dec 13 '12 at 02:17