Sorry, I was not meaning to double post, I though it would be better to have thread in 'Shell Programming and Scripting ' then here, "programming" So I was going to delete this thread.
Thanks for the reply. still tying to figure out a work around here.
This is certainly a messier and less efficient solution, but in the absence of word boundaries in your sed implementation you could maybe do something like this ?
sed -e "/^cat /d" -e "/ cat$/d" -e "/ cat /d"
So specifically checking for lines starting with 'cat' and then a space; lines ending with a space and then 'cat'; and lastly lines containing 'cat' surrounded by a space on either side. And so on in that fashion, if there are any other cases that would occur in your input (you'd have to consider punctuation marks, etc).
As I say, messy, but you could cobble something together in this way maybe.
Well, too bad.
Please abstain from posting screen shots or pictures to show texts like code, output, or error messages. Post the text as is to enable people to copy and use it.