Find the answer to your Linux question:
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? ...
  1. #1
    Just 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

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,393
    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/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...