.

Thursday, February 01, 2018

Unix find command to search a string in current path and sub directories

Unix find command to find the file with matched pattern

It finds and displays the file name and where the matching occurs
It searches in current directory and its sub directories, and in all files where the file contains WIP_OSP in any case

find  .  -name  "*.*" -exec grep -i "WIP_OSP" {} \; -print

No comments:

Post a Comment