In <[EMAIL PROTECTED]>, Rich Shepard <[EMAIL PROTECTED]> typed: > On Thu, 20 Oct 2005, Paul wrote: > > > Is there a command-line tool that does this using some heuristics to cover > > most areas that could be problematic? > > Paul > > sed. tr, too, but sed would work. Something like s/"[A-Z,a-z]?/``?/g. I > didn't look > at my sed book, but that reads, "substitute two single backqotes when there's > a plain double quote followed by a single character; do this globally." You > want to test that it's not a period, but a letter.
You want 's/"\([A-Za-z]\)/``\1/g'. <mike -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.