Putty grep Find String In File - Java @ Desk

Saturday, June 14, 2014

Putty grep Find String In File

Putty grep Find String In File

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

grep "User Name is" output16042014.log






No comments:

Post a Comment