I have a tab-separated text, within the text is a string that appears on several occasions and I need to remove it when accompanied by other strings.
A B C D E F G H I J
string string string car29 "" "" "" "" "" string # We don't do anything
string string string pool car29 "" "" "" "" string # Remove car29
string string string fifo pool car29 "" "" "" string # Remove car29
string string string car29 "" "" "" "" "" string # We don't do anything
The key word is car29 and we just act on rows where this word appears
Expected Output
A B C D E F G H I J
string string string car29 "" "" "" "" "" string
string string string pool "" "" "" "" "" string
string string string fifo pool "" "" "" "" string
string string string car29 "" "" "" "" "" string