projects
/
debian
/
openrocket
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Material localization support
[debian/openrocket]
/
core
/
resources
/
l10n
/
rename.sh
1
#!/bin/bash
2
3
# Usage:
4
# ./rename <file-containing-rename-keys> <files_to_modify ...>
5
6
RENAME="$1"
7
shift
8
9
cat "$RENAME" | while read line ; do
10
11
FROM=`echo $line | awk '{print $1}'`
12
TO=`echo $line | awk '{print $2}'`
13
14
sed -i "s/$FROM/$TO/g" "$@"
15
16
done