我想在文件中搜索string1或string2或string3等的出现,并且只打印那些行(到stdout或文件,一个).如何在bash中轻松完成此操作?
string bash search file
bash ×1
file ×1
search ×1
string ×1