title: search for a string and print next to that using sed/awk?
body: <p>i am newbie to <code>sed/awk</code> scripts.<br>
  i want to search for a string and if matches then print next word to that.  </p>
  
  <p>i.e  my output is <code>RXpackets:1000</code> and <code>TXpackets:2000</code>.   </p>
  
  <p>Using <code>sed/awk</code> script i want to search, and store values <code>RXpackets</code> and <code>TXpackets</code> values into variables. That means <code>1000</code> and <code>2000</code> values. can anybody help me please ?   </p>
  
  <p>Also suggest me which script <code>awk/sed</code> is best to learn and use. </p>