How to grep in specific file type
Answers
-
You can use find command.
-type f
:look into files only-name '*.php'
:for file extension php only-exec
:executing grepfind ./ -type f -name '*.php' -exec grep -H --line-number --color "my keyword" {} \;
0
Howdy, Stranger!
Categories
- 83 All Categories
- 15 VoIP
- 7 SIP
- 11 asterisk
- 41 Programming
- 1 Nodejs
- 4 javascript
- 18 PHP
- 8 Codeigniter
- 12 database
- 1 UI/UX
- 2 Flutter
- 25 OS
- 23 Linux
- 1 Virtualization
- 1 Android
- 1 Windows
- 2 legal