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
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.