Results 1 to 2 of 2
I need a script to get the output of ifconfig, grep that for "dropped" and whatever appears after dropped: to be written to a file.
How do I do that?
...
- 12-20-2011 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 15
How to grep ifconfig output to show if the number of
I need a script to get the output of ifconfig, grep that for "dropped" and whatever appears after dropped: to be written to a file.
How do I do that?
Thanks
- 12-21-2011 #2
This is covered in detail in the man pages for grep and bash. The problem here is that your question looks suspiciously like homework. If you're struggling to do operations of this type, you should consult your tutor rather than ask us to answer your test questions here.
Linux user #126863 - see http://linuxcounter.net/


Reply With Quote