关于linux grep 问题如题

test.txt文件中内容为
第一行


第二行


我想找出 包含了 ted2="aaa_aa" 与 ccccc="true" 的行 该怎么写

more test.txt | grep -n ted2="aaa_aa" || ccccc="true"

cat test.txt | grep -n ted2="aaa_aa" || ccccc="true"

没显示全
一个文件中为一下字符
第一行


第二行


我想找出 包含了 ted2="aaa_aa" 与 ccccc="true" 的行 该怎么写

  1. 一个文件中为一下字符
  2. 第一行
  3. 第二行

  4. 我想找出 包含了 ted2="aaa_aa" 与 ccccc="true" 的行 该怎么写

一个文件中为一下字符
第一行
ted te1="aaaaa" ted2="aaa_aa" a="1" b="2" c="3" ccccc="false" d="4"/>
第二行
ted te1="aaaaa" ted2="aaa_aa" a="1" b="2" c="3" ccccc="true" d="4"/>

我想找出 包含了 ted2="aaa_aa" 与 ccccc="true" 的行 该怎么写

我想找出 包含了 ted2="aaa_aa" 并且 ccccc="true" 的行 该怎么写