Command to search a particular word in multiple files under the parent directory.

To execute this command first go the parent directory then use the following command:-

find . -type f -print0 | xargs -0 grep lover /dev/null

this will find all the files/lines which includes the word ''lover'' under the parent directory from which the command is executed.

Comments

Popular posts from this blog

CDbConnection failed to open the DB connection mysql 8

/bin/sh^M: bad interpreter: No such file or directory Linux

Send mail from Oracle Solaris OS with attached files