7 Replies Latest reply on Jul 14, 2020 11:03 AM by Priya Dubey-Oracle

    Need help to search for a string pattern in all files inside a directory

    Priya Dubey-Oracle

      Hi All,


      I need to find a string pattern say "%end%" (to match all possible words like 'amend','agenda') , withing all the files inside a directory say '/temp/home'.


      I worked on some GREP command variations but none of them seems to give the desired output.



      1.)This search is to query 'shell scripts' file type and not .txt files

      2.)The string has to be searched withing all the files of the directory, and not in the filenames of the directory


      Any suggestion/command/script will do for this solution which i can run on my unix/linux


      Thanks in advance for helping!