9 lines
163 B
Plaintext
9 lines
163 B
Plaintext
|
#!/bin/sh
|
||
|
exprs=""
|
||
|
for i in ${1+"$@"}; do
|
||
|
var="`echo $i | sed 's/=.*$//'`"
|
||
|
val="`echo $i | sed 's/^[^=]*=//'`"
|
||
|
exprs="$exprs -e s;@$var@;$val;"
|
||
|
done
|
||
|
sed $exprs
|