I have a file with repeated lines that have particular text on them. I need to view the file content ignoring these lines.
Is there anyway I can achieve this using
You can use a command like
Most vi clones (like vim) can read from standard input.
The following command will allow me to view /var/log/messages , while ignoring all lines from the 'kernel' syslog facility (These are the Firewall lines, which I want to ignore for now):
This will let you view the file, however you won't be editing the file. You are editing a copy of the file.