JohnMorrison
Technical User
I think this should be straightforward, but I am new to tcl so I need some help.
Basically, I need to search for a string within a file, and if the string is found, then write a message to indicate that it has been found (something like the 'grep' command in Unix).
i.e. Something like : search "<String>" filename
if string found <write OK message>
else <Write error message>
Thanks in advance
John
Basically, I need to search for a string within a file, and if the string is found, then write a message to indicate that it has been found (something like the 'grep' command in Unix).
i.e. Something like : search "<String>" filename
if string found <write OK message>
else <Write error message>
Thanks in advance
John