#! /bin/bash # # $Id$ # # Subst $Log...$ -> %Log...% in all the subdirectories. # Required for proper diffing of CVSed Linux kernel sourcetrees. grep -rl '[$]Log\>' .|xargs perl -i -p -e 's/\$(Log\b[^\$]*)\$/%$1%/g'