Quote:
Originally Posted by vermaden
Mhmm, I do not get it, what is the problem if a file contains an MD5 sum, what problems?
|
Perhaps I didn't explain it well. The problem I (think I) see is if a filename contains an md5sum -- note: the file's
name, not the content of the file! So for example, if you had a file called
XYZ_4a26b9aa1ba28b018d5b427a16c0e1f8_.html, where the name of that file contains the md5sum
4a26b9aa1ba28b018d5b427a16c0e1f8 for another file, then the grep would pick it up by mistake; unlikely, perhaps, but not what you want. Maybe you could put a
^ on the grep pattern, or use awk?
You're welcome.
Oh, one other thought came to mind. For your temporary file, it might be a good idea to use
mktemp(1).