Grep Regex: List all lines except May 1, 2023 by Tarik That should do it: grep -v 'T[^H]' -v : print lines not matching [^H]: matches any character but H