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"
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"