will find the escape character anywhere on a line in a file, like grep. You will need to construct a whole string of hex chars to find the exact sequence you want.
NOTE: cat -vte {file_name} will show all characters including carriage returns and such...
NOTE2: Use 'vim' (freeware) and or link vim to vi... vim can handle longer lines and larger pages...
Thanks to both of you for your replies, I assume these will work in conjunction with checking for the occurrence of the text and return a result value. They both look as though they do.
Thanks for your input, I haven't yet had chance to try the other suggestions. I think your code could be a little too much though for what I need. Also I don't know if the system I am working with has perl installed.
SunDude - tried your suggestion, the only draw back to this is that I need to look for more than just the @ sign to make the condition unique. I tried this with the other characters (excluding the [ as grep does not like looking for this character) and still didn't get a result (just got 0).
Actually scrap that I think I need to add the backslash to each character so that it is interpreted as a character and not an escape code. I will be back!