Find a pattern in a file at a particular location

Hi all,

I have a question on how to search for a pattern in a file and return a value if it is present at that particular location.

How to read each line and each character for the pattern in the file of any format.

Eg for the file format:

attached the file

See http://www.unix.com/shell-programming-scripting/101839-incremental-log-parser.html\#post302290137