Hi all. Just looking for some clues to get started.
I want to use bash to scan a text file for a keyword, look at the next character and then increment a counter depending on the character. So it would look for the word START and if the next character in the file is not E from (END) then a counter would be incremented. Any ideas? I'm thinking it would involve awk and sed.
ie.
Code:
START
#
#
END
START
END
START
abcd
END