打印不包含字符的单词

use*_*000 1 grep sed

我的文件格式如下:

this!,is!,another!,test,yes!
this!,is!,another!,column,yes!
no,not!,another!,column
Run Code Online (Sandbox Code Playgroud)

我的输出应该是:

test
column
no
Run Code Online (Sandbox Code Playgroud)

它不应该包含“!” 特点。

我已经尝试了多个 sed 和 (e)grep 命令,但没有一个很好用。

小智 5

尝试这样的事情:

tr ',' '\n' < file.txt | grep -v \!
Run Code Online (Sandbox Code Playgroud)