To my way of thinking,
egrep -x -e '(.*errorlog.txt.*){0}' dir.txt
should remove a line containing "errorlog.txt" (anywhere in the line) from the input file. But it is not so. If fact, it
matches only the line containing "errorlog.txt".
Can I utilize egrep to accomplish this task, and if so, what regular expression must I use?
Thanks in advance.