iftop -t -L1 -s1
iftop -t -L1 -s1 | grep "Total send and receive rate:"
How can I grep just the "Total send and receive state:" line?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
It seems that
iftop is writing the unwanted lines to
STDERR. To remove those for your
grep use a command line as follows.
iftop -t -L1 -s1 2> /dev/null | grep "Total send and receive rate:"