July 31st, 2007 @ 15:30
Quick sed tip :
C++ // comments to C /* comments */ :
sed -e "s/\/\/\(.*\)$/\/*\1 *\//"
(yes, I know that sed -r -e “s,//(.*),/*\1 */,” looks a lot better, but it’s just too obvious to read :p)