In a big log or text file for debugging purposes we may require to search for a particular text. For example, if there is an application in which multiple threads are running and we want to check for the log "Data Saved For User Id....." to check if the data is saved or not for users.
To achieve this, grep command is used
1) Search For String "User Name is"
2) Log file Name is output16042014.log