hans

hans

【Shell】Quickly track which files contain a certain keyword.

title: '【Shell】Quickly track which files contain a certain keyword'
date: 2017-04-24
permalink: /posts/2017/04/【Shell】Quickly-track-which-files-contain-a-certain-keyword/
tags:

  • Shell


grep -n -H -R "keyword"

-n display line numbers

-H display file names

-R recursively search each subdirectory

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.