In my output file I have the below lines included multiple times along with the required output. WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.Here is how my output looks like.####################################################################Raw Error: count of the error records with latest trans session in audit_preatlas_wb4370_raw_error_05012016073248 table====================================================================count   trans_sessionWARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.********************************************************************Raw Audit: Total records available in audit_preatlas_wb4370_raw_audit_05012016073248 table====================================================================count   trans_sessionRaw Audit: Distinct records of audit_preatlas_wb4370_raw_audit_05012016073248 table====================================================================count   trans_sessionWARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.Raw Audit : count of duns with error gbwr_raw_audit_mandatory_field code in audit_preatlas_wb4370_raw_audit_05012016073248 table====================================================================count   trans_session   error_codeWARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.Raw Audit : count of duns with error gbwr_raw_audit_numeric_field code in audit_preatlas_wb4370_raw_audit_05012016073248 table====================================================================count   trans_session   error_codeWARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.How can I remove the WARN lines alone?
Remove lines from a file
text processing;logs
So there are a few ways. To summarize the comments above   you can do one of the following:awk:awk '!/^WARN/' filenamesed:sed '/^WARN/d' filenamegrep:grep -v '^WARN' filename