Computer Hope
Software => BSD, Linux, and Unix => Topic started by: John_L. on February 15, 2016, 06:59:04 PM
-
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.