Profile
Achievement
    
                mattkenefick's Recent SnippetsTagged files
- All /
 
 « Prev 1 Next »
Returns an array of files that match a search term in a certain directory.
        
        
        
            1 
        
        
            1197 
        
                    posted 15 years ago by mattkenefick
            find . | xargs grep 'string' -sl
The -s is for summary and won't display warning messages such as grep: ./directory-name: Is a directory
The -l is for list, so we get just the filename and not all instances of the match displayed in the results...
        
        
        
            2 
        
        
            1867 
        
                    posted 16 years ago by mattkenefick