in reply to Re^3: search log file with multiple word and count number of success
in thread search log file with multiple word and count number of success

Thanks for the help...

i have learnt more things after looking at it..

i guess there is some misunderstanding under point 7. Actually i would like my script to count the number of time an error occur for today. The count should be by individual error. Think a example will be good. Please have a look at the below

let say today date is 24th Feb and in /var/abcLogs:

23 Feb error1 found. please check => this is not what i want as the date is today

23 Feb error1 found. please check => this is not what i want as the date is today

24 Feb error1 found. please check => this what i want as the line has today date and either errror1, 2 or 3

24 Feb error1 found. please check => this what i want as the line has today date and either errror1, 2 or 3

24 Feb error3 found. please check => this what i want as the line has today date and either errror1, 2 or 3

24 Feb error2 found. please check => this what i want as the line has today date and either errror1, 2 or 3

hence, the output result will show me:

error1 found 2 for today

error2 found 1 for today

error3 found 1 for today

  • Comment on Re^4: search log file with multiple word and count number of success