这是我的档案.
this is temp1
this is temp2
this is temp3
this is temp1
this is tempabc
Run Code Online (Sandbox Code Playgroud)
如何使用grep命令,虽然寻找模式"温度",其结果应显示为唯一的"temp1中,TEMP2,TEMP3,tempabc",只有唯一码字.
谢谢
这是我的档案.
this is temp1
this is temp2
this is temp3
Run Code Online (Sandbox Code Playgroud)
如何使用grep命令,在查找模式'temp'时,结果应该只显示为'temp1,temp2,temp3',而不是整个句子.
谢谢