wiki:waue/2010/0615

Version 1 (modified by waue, 14 years ago) (diff)

--

#!/bin/bash
INPUT=$1;
OUTPUT=$2;
grep -r "$INPUT" * | awk 'BEGIN {FS=":"} {print $1}' | xargs sed -i "s/$INPUT/$OUTPUT/g"