Dr Small
March 11th, 2008, 10:13 AM
I was never very talented with sed, and understanding it has always be tough. But I have a homemade script here and here is what my output is:
drsmall@darkghost:~$ netload | awk '/RX/ {print $2}'
bytes:905512961
Well, I want to take sed and remove "bytes:" from that output so only the numbers are the output and have tried this:
netload | awk '/RX/ {print $2}' | sed '/bytes:/ d'
But I don't get any output now. Is there anyone who knows sed that can help?
Dr Small
drsmall@darkghost:~$ netload | awk '/RX/ {print $2}'
bytes:905512961
Well, I want to take sed and remove "bytes:" from that output so only the numbers are the output and have tried this:
netload | awk '/RX/ {print $2}' | sed '/bytes:/ d'
But I don't get any output now. Is there anyone who knows sed that can help?
Dr Small