You are not logged in.

#1 2004-09-21 23:52:19

rudefyet
Member
From: Columbus, Ohio
Registered: 2004-08-04
Posts: 16

looking for a command

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

#2 2004-09-22 01:56:26

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: looking for a command

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

#3 2004-09-22 02:12:44

rudefyet
Member
From: Columbus, Ohio
Registered: 2004-08-04
Posts: 16

Re: looking for a command

thanks...but luckily i figured out a way around it


Compaq R3000Z + Arch = Secks

Offline

Board footer

Powered by FluxBB