-n行番号を表示し、-iは大文字小文字を無視し cat hello.tex | grep yesます。hello.txtでyesを見つけて行番号を表示します。行番号を表示し、daxiaoxieを cat hello.tex | grep -n yes無視します cat hello.txt | grep -ni yes
cat hello.tex | grep yes
cat hello.tex | grep -n yes
cat hello.txt | grep -ni yes