Use find and grep to search for a specific text in a directory. In this example, we search for files which uses the PHP short tag – <?
find -name '*.php' -exec grep '<?[^p\=]' {} \;
Byte sized tech know-how.
Use find and grep to search for a specific text in a directory. In this example, we search for files which uses the PHP short tag – <?
find -name '*.php' -exec grep '<?[^p\=]' {} \;
Copyright © 2024 Txt