I have the following content in the file. I would like to remove dates and the underlines from the file using sed. let me know if this would be possible to do with grep either. Can someone assist on this?03-02-2016===========<exp2://Ticket/26727777> Splunk Onboarding for SSO Components (UAT)<exp2://Ticket/25709048> <SERVER-SETUP>Splunk Setup 14xMDN, 10xPRN Prod <exp2://Ticket/26716590> Logs not populated properly from all servers -  SPLUNK TEST<exp2://Ticket/23995808> Prod: Create summary index summary_rover_lifecycle in DS cluster05-02-2016===========<exp2://Ticket/26781310> Request for on-boarding on Splunk -Employee Systems Logs<exp2://Ticket/26781558> Splunk setup for Apple Learn UAT hosts
How to remove date format
text processing;sed
If you have access to GNU grep:grep -vP '^(\d+-\d+-\d+|=+)$' fileAnd, if you don't:grep -vE '^([0-9]+-[0-9]+-[0-9]+|=+)$' fileBoth commands use grep's -v flag which means print lines that don't match the pattern and look for lines consisting of either 3 groups of digits separated by dashes or one or more = from the beginning (^) to the end ($) of the line.You can do the same thing in sed with:sed -E '/([0-9]+-[0-9]+-[0-9]+|=+)/d' file