15 lines
150 B
Bash
Executable file
15 lines
150 B
Bash
Executable file
#!/bin/sh
|
|
usage()
|
|
{
|
|
printf 'usage: %s tag file\n' $0
|
|
exit 1
|
|
}
|
|
|
|
test $# -lt 2 && usage
|
|
|
|
tag="$1"; shift
|
|
sed "/<<Version>>=/ {
|
|
n
|
|
c\\
|
|
$tag
|
|
}" "$@"
|