From: Andrew Porter Date: 2008-05-29T07:18:26+09:00 Subject: Find/Replace In Files Using Lookup Table I have a directory full of HTML files. Some have anchor tags (), some do not. I also have a tab- delimited text file with—among other things—an ID, title, and filename. What I need to do is create a script that will: 1. Search all of the HTML files in a directory for anchor tags 2. Strip out the file name from the href attribute 3. Use the file name to look up the correlating ID in the lookup file 4. Replace the contents of the href attribute with the ID Being new to Ruby and command-line scripting, I'm not sure where to begin looking for examples of how to do this. Any help is appreciated.