Solve : egrep regular expression to remove a matching line?
Answer»
To my way of thinking,
Code: [Select]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?