Efficient method of determining if a sting is in a file.

view story

http://www.unix.com – Hi, I was hoping someone could suggest an alternative to code I currently have as mine takes up far too much processor time and it to slow. The situation: I have a programme that runs on some files just before they are zipped up and archived, the program appends a one line summary of the file contents to a file called summary.log in the following format: <filename1><file timestamp><data> <filename2><file timestamp><data> ... ... etc It is imperative that each file is only processed once (this should happen my default but it is very sensitive information (HowTos)