Thomas: I would wager that all of the more sophisticated text editors available to you can handle this task, certainly vim, emacs, ed, and nano can. As has been noted, you could do it on the command line with sed or awk, as well. And/or, you could do it in perl scripts. -- Janina Sajka, Director Technology Research and Development Governmental Relations Group American Foundation for the Blind (AFB) Email: janina at afb.net Phone: (202) 408-8175 Chair, Accessibility SIG Open Electronic Book Forum (OEBF) http://www.openebook.org