grep&find

grep pattern file

grep -i pattern file

    ignore the uppercase/lowercase distinctions during comparisons.

grep -f pattern file

        only the name of the file with mathing lines are listed (once)

grep -n pattern file

     Each line is preceded by its relative line number in the file starting at 1.

     This option is ignored if -c, -b, -l, or -q is specified.

====================================

find . -name 'abc'

==================================== 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章