Use the following command to search any text in the files using the command line in linux.
grep -i -n -r 'pagination' /home/sheetal/xyz
Above command will search pagination text in all files in xyz directory and its subdirectory.