11 lines
242 B
Bash
11 lines
242 B
Bash
|
#!/bin/sh
|
||
|
PATTERN="fastlane/metadata/*/description.txt"
|
||
|
AFTER=$1
|
||
|
NAME=$2
|
||
|
DELIMITER="†"
|
||
|
|
||
|
for FILE in `ls $PATTERN`; do
|
||
|
sed -E "s/${AFTER}/${AFTER}${DELIMITER}- ${NAME}/g" $FILE | tr $DELIMITER '\n' >$FILE.tmp
|
||
|
mv $FILE.tmp $FILE
|
||
|
done
|