Thanks sundialsvcs,
Yes that is I believe all I want out of it
here is output of that seven word file with -ow options
Code:
[teabear@junker ~]$ egrep -ow 'networ|computer|linux|cu|al' /home/teabear/desktop/tsthtml
linux
computer
networ
al
al
cu
cu
cu
here it is with only the -w option
Code:
[teabear@junker ~]$ egrep -w 'networ|computer|linux|cu|al' /home/teabear/desktop/tsthtml
<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>mmmam</title></head><body>linux computer network<br><br>dual almost cucumber cups</body></html>
[teabear@junker ~]$
The color is missing but in the second output the searched terms are highlighted. Maybe the html stuff is is interfering?
I a going to go double check with plain text file
Yes same behaviour with a text file,
Code:
[teabear@junker ~]$ egrep -w 'computer|linux|cu|al' /home/teabear/desktop/testtext
linux computer aluminum cucumber
aluminum cucumber linux computer
[teabear@junker ~]$
Code:
[teabear@junker ~]$ egrep -wo 'computer|linux|cu|al' /home/teabear/desktop/testtext
linux
computer
al
cu
cu
al
cu
cu
linux
computer
[teabear@junker ~]$
so it isn't just the html format thats messing me up
What could I have screwed up to be causing this? Some kind of envirioment
setting?
Thanks again to all,
I reinstalled only my / and still had the problem, tried a while longer to figure out the prob, gave up and then reinstalled /home and now the problem is gone.
I suspect that during my experimenting with grep,sed,awk etc... I accidently screwed up a config file that bash looks at. Just a guess. Don't put much stock in it. I have yet to be correct about anything System or Programming related.