New to shell scripting....
I have log file content as below:
I have to count the number of occurences of ERROR or INFO Messages.
So, I cut 5 th column and uniquly sorted and redirected it to new.txt file.
But I want copy to S*/Filename and T*/Filename of respective ERROR or INFO messages,uniquly sorted to new.txt file.
I tried awk command ..but it failed to copy to new.txt file.
Once this is done I have to check for the occurences of ERROR string. So for that I searched for egrep and tried to use, but output is incorrect.
Final output i am looking for: