Home | History | Annotate | Download | only in scripts

Lines Matching refs:OLD

3 OLD="$1"
7 if [ -z "$OLD" ] || [ -z "$NEW" ]; then
9 Usage: $0 <old> <new>
25 OLD="${OLD//./\.}"
28 # Find all the files with the old pattern, except changes.txt and
31 grep -rl "$OLD" * | grep -E "\.xml$|\.MF$" | xargs -n 5 g4 edit
35 # the new pattern. Old files get backuped with the .old extension.
36 grep -rl "$OLD" * | grep -E "\.xml$|\.MF$" | xargs -n 1 sed -i.old "s/$OLD/$NEW/g"