I'd like to write a shell (bash) script that prints the system's download and/or upload capacities (in Kbps):
# Get download bandwidth sh fetch-bandwidth.sh DOWNLOAD > 556 Kbps download bandwidth # Get upload bandwidth sh fetch-bandwidth.sh UPLOAD > 374 Kbps upload bandwidth
I can take care of the boilerplate stuff (validating arguments for input, formatting and printing output, etc.), however I'm clueless what to use for actually querying the system for the bandwidth values. Thanks in advance!