1
0
Fork 0
mirror of https://gitlab.com/veilid/veilid.git synced 2025-05-06 08:35:19 -04:00
veilid/package/replace_variable.sh
2022-05-16 11:52:48 -04:00

7 lines
No EOL
120 B
Bash
Executable file

#!/bin/bash
INPUTFILE=$1
VARIABLE_NAME=$2
VARIABLE_VALUE=$3
sed -i "s/\$$VARIABLE_NAME/$VARIABLE_VALUE/g" "$INPUTFILE"