You are not logged in.
Pages: 1
i'm making a pkgbuild for my favorite emulator..
but i've run into a problem
is there anyway to change a varible in a config file
i know of the echo command...
sorry this question is so vague i just need to be able to type a command that change something inside a config file
Compaq R3000Z + Arch = Secks
Offline
Usually, I use sed (pacman -S sed)
SCRIPT=$(echo "s=variable=newvariable=")
sed -e "$SCRIPT" < file > file.tmp
mv file.tmp file
to subtitute a string with '=', use '='
There is also awk which you could use.
There migth be some better way
Offline
thanks...but luckily i figured out a way around it
Compaq R3000Z + Arch = Secks
Offline
Pages: 1