Sometimes, we want to perform 'grep' command among results of 'find' command.
I'll introduce how can we do this easier.
The way is very simple - magic keyword is "--include=<file name>"
Example, below command find "PAGE" word among the files what has ".dts" string in file name.
grep -snra --include="*.dts*" "PAGE"
'Programming > Linux Tip' 카테고리의 다른 글
proc/meminfo 분석하기 와 pagecache size limitation(restrict) 하는 방법 (0) | 2020.03.17 |
---|---|
shell terminal 이 종료되어도 계속해서 작업 수행되도록 하기 (1) | 2018.11.21 |
patch 적용하기, diff, sdiff (0) | 2018.11.08 |
MBR 혹은 partition table dump 명령어, device node 로 부터 ufs, emmc dump (0) | 2018.10.31 |
loop device and losetup (0) | 2018.10.29 |