Thursday, 26 March 2015

Grep command to check in logs to get specific data

Grep command to check in logs to get specific data.



Suppose you have particular date and time then you can use grep command and get the require data by using below command.

grep "08/22/13 15:47:09" filename;
 







Suppose if you don't have date and time you have the user name then you can use below command and you can get the result in name.txt

grep username filename;>> name.txt

name* you can give anyname you want.
filename * is log file name .

No comments:

Post a Comment

The purge process did not run because the Oprid configured to start the Process Scheduler did not have the required permissions to run the purge process.

  Purge process - Required permissions The PeopleSoft Oprid used to start the Process Scheduler, as defined in the Scheduler's psprcs.cf...