> What is the best way to replace quoted includes (#include "duh.h") with > bracketed includes (#include <duh.h>)?
$ perl -i.bak -ne 'if (/#include \"(.*)\"(.*)$/) {print "#include <$1>$2\n"} else {print $_}' *.h (Creates a .bak file for every file processed from the *.h) -- Peter Galbraith, research scientist <[EMAIL PROTECTED]> Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546 6623'rd GNU/Linux user at the GNU/Linux Counter -- http://counter.li.org/