Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by jfm1

  1. jfm1

    Print all words that start with a %, one to a line.

    I tried that but in csh I got "d': Event not found" as an error msg. But I tried combining sed and awk and finally got what I wanted: cat logfile | sed 's/.*\(%\)/\1/' | awk '{print $1}' This listed the "%words" I was looking for. Thanks for the kick start. Joe
  2. jfm1

    Print all words that start with a %, one to a line.

    Hello, I have a log where every line has a word in it that starts with a % sign. I need to print each line, but only the word that starts with %, no other words or characters. Thanks for your help, Joe
  3. jfm1

    awk gives an error of " too many fields "

    Try using nawk, it works for me when parsing large Openview<br>SNMP records that give that same error when using awk.

Part and Inventory Search

Back
Top